/* =========================================================
   TECOMSER ADMIN
   AUTH UI
   ========================================================= */

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;

    --text: #111827;
    --text-soft: #64748b;
    --text-muted: #94a3b8;

    --border: #dfe4eb;
    --border-hover: #bbc4d0;

    --primary: #111827;
    --primary-hover: #1f2937;

    --danger: #b42318;
    --danger-bg: #fff3f2;
    --danger-border: #fecdca;

    --success: #067647;
    --success-bg: #ecfdf3;
    --success-border: #abefc6;

    --radius-card: 18px;
    --radius-field: 9px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    appearance: none;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PAGE
   ========================================================= */

.auth-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top center,
            rgba(15, 23, 42, 0.055),
            transparent 33%
        ),
        var(--bg);
}

.auth-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 36px 18px;
}


/* =========================================================
   CARD
   ========================================================= */

.auth-card {
    width: 100%;
    max-width: 430px;

    padding: 38px 36px 32px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-card);

    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.075),
        0 4px 14px rgba(15, 23, 42, 0.035);
}

.auth-card--register {
    max-width: 680px;
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    margin-bottom: 31px;
}

.auth-logo-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 10px;

    background: var(--primary);
    color: #ffffff;

    font-size: 19px;
    font-weight: 900;
}

.auth-logo-text {
    display: flex;
    align-items: center;

    gap: 7px;
}

.auth-logo-text strong {
    color: var(--text);

    font-size: 18px;
    font-weight: 900;

    letter-spacing: 0.015em;
}

.auth-logo-text span {
    height: 22px;

    display: inline-flex;
    align-items: center;

    padding: 0 7px;

    border-radius: 5px;

    background: #eef1f5;
    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-heading {
    margin-bottom: 28px;

    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 9px;

    color: var(--text);

    font-size: 27px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.035em;
}

.auth-heading p {
    max-width: 500px;

    margin: 0 auto;

    color: var(--text-soft);

    font-size: 13.5px;

    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    display: grid;

    gap: 19px;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.field {
    min-width: 0;

    display: grid;

    gap: 7px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: #344054;

    font-size: 12.5px;
    font-weight: 700;

    line-height: 1.4;
}

.field input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-field);

    background: #ffffff;

    color: var(--text);

    font-size: 14px;

    outline: 0;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.field input::placeholder {
    color: #98a2b3;
}

.field input:hover {
    border-color: var(--border-hover);
}

.field input:focus {
    border-color: #667085;

    box-shadow:
        0 0 0 3px rgba(102, 112, 133, 0.12);
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 49px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    padding: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #667085;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.password-toggle:hover {
    background: #f2f4f7;
    color: #101828;
}

.password-toggle svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   HELP
   ========================================================= */

.field-help {
    min-height: 14px;

    color: var(--text-muted);

    font-size: 10.5px;

    line-height: 1.35;
}

.field-help--error {
    color: var(--danger);
}

.field-help--success {
    color: var(--success);
}


/* =========================================================
   BUTTON
   ========================================================= */

.auth-button {
    width: 100%;
    height: 49px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin-top: 2px;

    padding: 0 20px;

    border: 0;
    border-radius: var(--radius-field);

    background: var(--primary);
    color: #ffffff;

    cursor: pointer;

    font-size: 13.5px;
    font-weight: 800;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.auth-button:hover {
    background: var(--primary-hover);

    box-shadow:
        0 8px 20px rgba(17, 24, 39, 0.13);
}

.auth-button:active {
    transform: translateY(1px);
}


/* =========================================================
   ALERTS
   ========================================================= */

.auth-alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 12.5px;

    line-height: 1.5;
}

.auth-alert--error {
    border: 1px solid var(--danger-border);

    background: var(--danger-bg);
    color: var(--danger);
}

.auth-alert--success {
    border: 1px solid var(--success-border);

    background: var(--success-bg);
    color: var(--success);
}


/* =========================================================
   PENDING
   ========================================================= */

.auth-pending {
    margin-top: 21px;

    padding: 12px 14px;

    border: 1px solid #e4e7ec;
    border-radius: 8px;

    background: #f9fafb;
    color: #667085;

    text-align: center;

    font-size: 11.5px;

    line-height: 1.55;
}

.auth-pending strong {
    color: #344054;
}


/* =========================================================
   LOGIN / REGISTER LINK
   ========================================================= */

.auth-register {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 24px;
    padding-top: 21px;

    border-top: 1px solid #eaecf0;

    text-align: center;

    font-size: 12px;
}

.auth-register span {
    color: #667085;
}

.auth-register a {
    color: #101828;

    font-weight: 800;
}

.auth-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    margin-top: 23px;

    color: #98a2b3;

    text-align: center;

    font-size: 10.5px;
    font-weight: 500;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .auth-page {
        align-items: flex-start;

        padding: 18px 12px 30px;
    }

    .auth-card,
    .auth-card--register {
        max-width: 100%;

        margin-top: 18px;

        padding: 28px 20px 26px;

        border-radius: 14px;
    }

    .auth-logo {
        margin-bottom: 25px;
    }

    .auth-heading {
        margin-bottom: 24px;
    }

    .auth-heading h1 {
        font-size: 23px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .field--full {
        grid-column: auto;
    }

    .auth-register {
        flex-direction: column;

        gap: 3px;
    }
}

@media (max-width: 380px) {

    .auth-card,
    .auth-card--register {
        padding-left: 17px;
        padding-right: 17px;
    }

    .auth-logo-mark {
        width: 39px;
        height: 39px;
    }

    .auth-logo-text strong {
        font-size: 16px;
    }
}
/* =========================================================
   REGISTRO INTELIGENTE
   ========================================================= */

.dni-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 9px;
}

.dni-button {
    height: 48px;
    border: 1px solid #111827;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 800;
    transition: .16s ease;
}

.dni-button:hover:not(:disabled) {
    background: #1f2937;
}

.dni-button:disabled {
    border-color: #e4e7ec;
    background: #eaecf0;
    color: #98a2b3;
    cursor: not-allowed;
}

.dni-button.is-loading {
    cursor: wait;
}

.dni-status {
    min-height: 17px;
    margin-top: 1px;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.4;
}

.dni-status--loading {
    color: #475467;
}

.dni-status--success {
    color: #067647;
}

.dni-status--error {
    color: #b42318;
}

.verified-field {
    position: relative;
}

.verified-field input {
    padding-right: 94px;
    background: #f8fafc;
    font-weight: 650;
}

.verified-badge {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    padding: 5px 7px;
    border-radius: 6px;
    background: #ecfdf3;
    color: #067647;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.phone-field {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 10px;
    border-right: 1px solid #e4e7ec;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.phone-field input {
    padding-left: 54px;
}

.password-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 1px;
}

.password-strength span {
    height: 3px;
    border-radius: 99px;
    background: #eaecf0;
}

.password-strength .strength-1 {
    background: #d92d20;
}

.password-strength .strength-2 {
    background: #f79009;
}

.password-strength .strength-3 {
    background: #12b76a;
}

.password-strength .strength-4 {
    background: #067647;
}

.auth-button:disabled {
    background: #d0d5dd;
    color: #98a2b3;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 520px) {
    .dni-control {
        grid-template-columns: 1fr;
    }

    .dni-button {
        width: 100%;
    }
}
/* =========================================================
   TECOMSER ADMIN
   REGISTRO COLABORADOR V2
   ========================================================= */

.auth-card--register {
    max-width: 780px;
    padding: 44px 42px 36px;
}


/* LOGO */

.auth-card--register .auth-logo {
    margin-bottom: 32px;
}

.auth-card--register .auth-logo-mark {
    width: 46px;
    height: 46px;

    font-size: 21px;

    border-radius: 11px;
}

.auth-card--register .auth-logo-text strong {
    font-size: 20px;
}

.auth-card--register .auth-logo-text span {
    font-size: 10px;
}


/* TITULO */

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

.auth-card--register .auth-heading h1 {
    font-size: 30px;
    font-weight: 850;
}

.auth-card--register .auth-heading p {
    max-width: 580px;

    font-size: 15px;
    line-height: 1.6;
}


/* FORMULARIO */

.auth-card--register .auth-form {
    gap: 22px;
}

.auth-card--register .form-grid {
    gap: 20px;
}

.auth-card--register .field {
    gap: 8px;
}

.auth-card--register .field label {
    font-size: 14px;
    font-weight: 750;
}

.auth-card--register .field input {
    height: 52px;

    padding-left: 15px;
    padding-right: 15px;

    font-size: 14.5px;

    border-radius: 10px;
}

.auth-card--register .field-help {
    font-size: 11.5px;
}


/* =========================================================
   DNI
   ========================================================= */

.auth-card--register .dni-control {
    grid-template-columns:
        minmax(0, 1fr)
        52px;

    gap: 10px;
}

.auth-card--register .dni-button {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: #111827;
    color: #ffffff;

    cursor: pointer;
}

.auth-card--register .dni-button:hover:not(:disabled) {
    background: #1f2937;
}

.auth-card--register .dni-button:disabled {
    background: #e4e7ec;
    color: #98a2b3;

    cursor: not-allowed;
}

.dni-search-icon {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* CARGANDO */

.dni-spinner {
    display: none;

    width: 20px;
    height: 20px;

    border: 2px solid
        rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation:
        tecomser-spin .7s linear infinite;
}

.dni-button.is-loading
.dni-search-icon {
    display: none;
}

.dni-button.is-loading
.dni-spinner {
    display: block;
}

@keyframes tecomser-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ESTADO DNI */

.auth-card--register .dni-status {
    min-height: 17px;

    font-size: 11.5px;
}

.dni-status--success {
    color: #067647;
    font-weight: 650;
}

.dni-status--error {
    color: #b42318;
    font-weight: 650;
}

.dni-status--loading {
    color: #475467;
}


/* =========================================================
   NOMBRE VERIFICADO
   ========================================================= */

.auth-card--register
.verified-field input {
    padding-right: 105px;

    background: #f8fafc;

    font-weight: 700;
}

.auth-card--register
.verified-badge {
    right: 10px;

    padding: 6px 8px;

    font-size: 9.5px;
}


/* =========================================================
   TELEFONO
   ========================================================= */

.auth-card--register
.phone-prefix {
    left: 14px;

    font-size: 13px;
}

.auth-card--register
.phone-field input {
    padding-left: 59px;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.auth-card--register
.password-field input {
    padding-right: 50px;
}

.auth-card--register
.password-toggle {
    width: 38px;
    height: 38px;

    right: 7px;
}

.auth-card--register
.password-toggle svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   BOTON FINAL
   ========================================================= */

.auth-card--register
.auth-button {
    height: 52px;

    font-size: 14.5px;

    border-radius: 10px;
}


/* =========================================================
   AVISO
   ========================================================= */

.auth-card--register
.auth-pending {
    padding: 14px 16px;

    font-size: 12.5px;

    line-height: 1.6;
}


/* =========================================================
   LOGIN LINK
   ========================================================= */

.auth-card--register
.auth-register {
    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.auth-card--register
.auth-footer {
    font-size: 11.5px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .auth-card--register {
        max-width: 100%;

        padding:
            32px
            24px
            28px;
    }

}


@media (max-width: 620px) {

    .auth-card--register {
        padding:
            28px
            20px
            26px;
    }

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

    .auth-card--register
    .auth-heading p {
        font-size: 14px;
    }

    .auth-card--register
    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card--register
    .dni-control {
        grid-template-columns:
            minmax(0, 1fr)
            52px;
    }

}