
/* =========================================
   WORKLINK | LOGIN Y REGISTRO
   ========================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #faf9f7;
    color: #20242c;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.auth-header {
    position: relative;
    width: 100%;
    min-height: 68px;
    padding: 16px max(5%, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e9e7e3;
}

.auth-logo {
    display: inline-block;
    color: #20242c;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -1.6px;
    line-height: 1;
    text-decoration: none;
}

.auth-logo span {
    color: #f47721;
}

.back-link {
    color: #555d68;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: #f47721;
}

/* Distribución general */

.auth-layout {
    width: min(1080px, 90%);
    min-height: 0;
    margin: 0 auto;
    padding: 48px 0 55px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: start;
    gap: clamp(35px, 6vw, 85px);
}

/* Presentación izquierda */

.auth-presentation {
    min-width: 0;
    padding-top: 45px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #d95d0b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.auth-presentation h1 {
    max-width: 510px;
    margin: 0 0 18px;
    color: #20242c;
    font-size: clamp(34px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -1.5px;
}

.auth-presentation > p {
    max-width: 440px;
    margin: 0 0 24px;
    color: #626975;
    font-size: 15px;
    line-height: 1.8;
}

.auth-image {
    display: block;
    width: 100%;
    max-width: 340px;
    max-height: 190px;
    margin-top: 10px;
    object-fit: contain;
    object-position: left center;
}

/* Tarjeta del formulario */

.auth-card {
    width: 100%;
    min-width: 0;
    padding: 30px 32px;
    background: #fff;
    border: 1px solid #e9e7e3;
    border-radius: 20px;
    box-shadow: 0 12px 38px rgba(32, 36, 44, 0.06);
}

.auth-card-heading {
    margin-bottom: 23px;
}

.auth-card-heading h2 {
    margin: 0 0 7px;
    color: #20242c;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.7px;
}

.auth-card-heading p {
    margin: 0;
    color: #89919c;
    font-size: 13px;
}

/* Campos */

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.auth-card .form-group label {
    color: #20242c;
    font-size: 12px;
    font-weight: 700;
}

.auth-card input,
.auth-card select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #e4e3e0;
    border-radius: 9px;
    background: #fff;
    color: #20242c;
    font-size: 13px;
    outline: none;
}

.auth-card input::placeholder {
    color: #89919c;
}

.auth-card input:focus,
.auth-card select:focus {
    border-color: #f47721;
    box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.11);
}

/* Botones */

.auth-submit,
.auth-secondary-button {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.auth-submit {
    margin-top: 2px;
    border: 0;
    background: #f47721;
    color: #fff;
    cursor: pointer;
}

.auth-submit:hover {
    background: #d95d0b;
}

.auth-secondary-button {
    border: 1px solid #e9e7e3;
    background: #fff;
    color: #20242c;
}

.auth-secondary-button:hover {
    border-color: #f47721;
    background: #fffaf5;
    color: #d95d0b;
}

.auth-divider {
    margin: 19px 0 12px;
    color: #89919c;
    font-size: 11px;
    text-align: center;
}

.auth-terms {
    margin: 17px 0 0;
    color: #89919c;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.auth-message {
    margin: 0;
    color: #555d68;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Pie */

.auth-footer {
    padding: 22px 5%;
    background: transparent;
    border-top: 1px solid #e9e7e3;
    text-align: center;
}

.auth-footer > a {
    color: #d95d0b;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.auth-footer p {
    margin: 5px 0 0;
    color: #89919c;
    font-size: 12px;
}

/* Tablet */

@media (max-width: 850px) {
    .auth-layout {
        width: min(520px, 92%);
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 35px 0 45px;
    }

    .auth-presentation {
        padding-top: 0;
    }

    .auth-presentation h1 {
        font-size: 37px;
    }

    .auth-image {
        max-width: 260px;
        max-height: 130px;
    }

    .auth-card {
        padding: 28px;
    }
}

/* Móvil */

@media (max-width: 480px) {
    .auth-header {
        min-height: 62px;
        padding: 15px 5%;
    }

    .auth-logo {
        font-size: 26px;
    }

    .back-link {
        font-size: 12px;
    }

    .auth-layout {
        width: 92%;
        padding-top: 27px;
    }

    .auth-presentation h1 {
        font-size: 33px;
    }

    .auth-presentation > p {
        font-size: 14px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .auth-card-heading h2 {
        font-size: 25px;
    }
}
