:root {
    --tecomser-navy-950: #061426;
    --tecomser-navy-900: #0a1d35;
    --tecomser-navy-850: #0d2542;
    --tecomser-navy-800: #123252;
    --tecomser-navy-700: #1b446d;

    --tecomser-slate-900: #1e293b;
    --tecomser-slate-800: #334155;
    --tecomser-slate-700: #475569;
    --tecomser-slate-600: #64748b;
    --tecomser-slate-500: #7c899b;
    --tecomser-slate-400: #94a3b8;
    --tecomser-slate-300: #cbd5e1;
    --tecomser-slate-200: #dbe3ec;
    --tecomser-slate-100: #e8edf3;
    --tecomser-slate-50: #f5f7fa;

    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --page-bg: #edf1f5;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #7b8798;
    --placeholder: #98a4b3;

    --border: #d7dee8;
    --border-strong: #bcc7d5;

    --success: #087443;
    --success-bg: #edf9f2;
    --success-border: #b7e6ca;

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

    --warning: #b54708;

    --radius-card: 20px;
    --radius-field: 11px;
    --radius-inner: 14px;

    --shadow-card:
        0 30px 80px rgba(6, 20, 38, 0.10),
        0 8px 24px rgba(6, 20, 38, 0.055),
        0 1px 2px rgba(6, 20, 38, 0.04);
}

* {
    box-sizing: border-box;
}

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

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

body {
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    appearance: none;
}

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

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

.auth-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(6, 20, 38, .035) 0, transparent 190px),
        radial-gradient(circle at 15% 0%, rgba(13, 37, 66, .075), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(71, 85, 105, .055), transparent 28%),
        var(--page-bg);
}

.auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 22px;
}

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

.auth-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(188, 199, 213, .75);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--tecomser-navy-950),
        var(--tecomser-navy-800) 58%,
        var(--tecomser-slate-700)
    );
}

.auth-card--login {
    max-width: 600px;
    padding: 50px 44px 38px;
}

.auth-card--register {
    max-width: 930px;
    padding: 50px 54px 42px;
}

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

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 34px;
}

.auth-logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--tecomser-navy-900), var(--tecomser-navy-950));
    color: #ffffff;
    box-shadow:
        0 9px 22px rgba(6, 20, 38, .20),
        inset 0 1px 0 rgba(255,255,255,.08);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.auth-logo-text {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-logo-text strong {
    color: var(--tecomser-navy-950);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .018em;
}

.auth-logo-text span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    background: #eef2f6;
    color: var(--tecomser-slate-700);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .13em;
}

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

.auth-heading {
    margin-bottom: 34px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 11px;
    color: var(--tecomser-navy-950);
    font-size: 32px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.037em;
}

.auth-heading p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 15.5px;
    font-weight: 450;
    line-height: 1.62;
}

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

.auth-form {
    display: grid;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 22px;
}

.field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

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

.field label {
    color: var(--tecomser-slate-800);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.35;
}

.field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-field);
    background: #ffffff;
    color: var(--tecomser-navy-950);
    font-size: 15px;
    font-weight: 520;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .018);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.field input::placeholder {
    color: var(--placeholder);
    font-weight: 450;
}

.field input:hover:not(:read-only) {
    border-color: var(--border-strong);
}

.field input:focus {
    border-color: var(--tecomser-navy-700);
    box-shadow:
        0 0 0 4px rgba(27, 68, 109, .10),
        inset 0 1px 2px rgba(15, 23, 42, .025);
}

.field input:read-only {
    background: #f4f7fa;
    color: var(--tecomser-slate-800);
}

.field-help {
    min-height: 16px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.42;
}

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

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

/* =========================================================
   PHOTO
   ========================================================= */

.photo-picker {
    position: relative;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #d6dee8;
    border-radius: 16px;
    background:
        linear-gradient(135deg, #f8fafc 0%, #f3f6f9 100%);
}

.photo-picker::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(10, 29, 53, .025));
}

.photo-preview {
    position: relative;
    z-index: 1;
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #e9eef4;
    color: var(--tecomser-slate-600);
    cursor: pointer;
    box-shadow:
        0 0 0 1px #cbd5e1,
        0 10px 26px rgba(6, 20, 38, .11);
    transition:
        box-shadow .16s ease,
        transform .16s ease;
}

.photo-preview:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 2px var(--tecomser-navy-700),
        0 12px 30px rgba(6, 20, 38, .14);
}

.photo-preview:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(27, 68, 109, .15),
        0 12px 28px rgba(6, 20, 38, .14);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--tecomser-slate-600);
    font-size: 11.5px;
    font-weight: 750;
}

.photo-preview-empty svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.photo-content > strong {
    display: block;
    margin-bottom: 6px;
    color: var(--tecomser-navy-950);
    font-size: 16px;
    font-weight: 820;
}

.photo-content > p {
    max-width: 570px;
    margin: 0 0 15px;
    color: var(--tecomser-slate-600);
    font-size: 13px;
    line-height: 1.55;
}

.photo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.photo-action {
    min-height: 41px;
    padding: 0 16px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 800;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.photo-action:active {
    transform: translateY(1px);
}

.photo-action--primary {
    border: 1px solid var(--tecomser-navy-900);
    background: var(--tecomser-navy-900);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(6, 20, 38, .12);
}

.photo-action--primary:hover {
    background: var(--tecomser-navy-800);
    border-color: var(--tecomser-navy-800);
}

.photo-action--secondary {
    border: 1px solid #c9d2dd;
    background: #ffffff;
    color: var(--tecomser-slate-700);
}

.photo-action--secondary:hover {
    border-color: #aeb9c8;
    background: #f5f7fa;
    color: var(--tecomser-navy-950);
}

.photo-status {
    display: block;
    color: var(--tecomser-slate-600);
    font-size: 11.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.photo-status--success {
    color: var(--success);
    font-weight: 700;
}

.photo-status--error {
    color: var(--danger);
    font-weight: 700;
}

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

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

.dni-button {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-field);
    background: linear-gradient(145deg, var(--tecomser-navy-900), var(--tecomser-navy-800));
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(6, 20, 38, .16);
    transition:
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.dni-button:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--tecomser-navy-800), var(--tecomser-navy-700));
    box-shadow: 0 10px 22px rgba(6, 20, 38, .20);
}

.dni-button:active:not(:disabled) {
    transform: translateY(1px);
}

.dni-button:disabled {
    background: #d8dee7;
    color: #8e99a8;
    cursor: not-allowed;
    box-shadow: none;
}

.dni-search-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dni-spinner {
    display: none;
    width: 21px;
    height: 21px;
    border: 2px solid rgba(255, 255, 255, .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);
    }
}

.dni-status {
    min-height: 18px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.dni-status--loading {
    color: var(--tecomser-navy-700);
}

.dni-status--success {
    color: var(--success);
    font-weight: 700;
}

.dni-status--error {
    color: var(--danger);
    font-weight: 700;
}

/* =========================================================
   VERIFIED NAME
   ========================================================= */

.verified-field {
    position: relative;
}

.verified-field input {
    padding-right: 116px;
    border-color: #ccd5e0;
    background: #f4f7fa;
    color: var(--tecomser-navy-900);
    font-weight: 720;
}

.verified-badge {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 6px 9px;
    border: 1px solid var(--success-border);
    border-radius: 7px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* =========================================================
   PHONE
   ========================================================= */

.phone-field {
    position: relative;
}

.phone-prefix {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    transform: translateY(-50%);
    padding-right: 11px;
    border-right: 1px solid #d7dee8;
    color: var(--tecomser-navy-700);
    font-size: 13px;
    font-weight: 800;
}

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

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

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--tecomser-slate-600);
    cursor: pointer;
    transition:
        color .15s ease,
        background .15s ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
    background: #edf2f7;
    color: var(--tecomser-navy-900);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

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

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

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

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

.password-strength .strength-3 {
    background: #2f855a;
}

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

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

.auth-button {
    width: 100%;
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--tecomser-navy-900), var(--tecomser-navy-800));
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(6, 20, 38, .16);
    font-size: 15px;
    font-weight: 820;
    letter-spacing: .005em;
    transition:
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.auth-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--tecomser-navy-800), var(--tecomser-navy-700));
    box-shadow: 0 13px 30px rgba(6, 20, 38, .21);
}

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

.auth-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(27, 68, 109, .14),
        0 12px 28px rgba(6, 20, 38, .18);
}

.auth-button:disabled {
    background: #d7dde5;
    color: #8b97a6;
    cursor: not-allowed;
    box-shadow: none;
}

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

.auth-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13.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: 25px;
    padding: 16px 18px;
    border: 1px solid #d9e1ea;
    border-left: 4px solid var(--tecomser-navy-700);
    border-radius: 10px;
    background: #f5f7fa;
    color: var(--tecomser-slate-700);
    text-align: left;
    font-size: 13px;
    line-height: 1.62;
}

.auth-pending strong {
    color: var(--tecomser-navy-900);
}

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

.auth-register {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e1e6ed;
    text-align: center;
    font-size: 13px;
}

.auth-register span {
    color: var(--tecomser-slate-600);
}

.auth-register a {
    color: var(--tecomser-navy-800);
    font-weight: 820;
}

.auth-register a:hover {
    color: var(--tecomser-navy-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.auth-footer {
    margin-top: 24px;
    color: var(--tecomser-slate-400);
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .01em;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {
    .auth-page {
        padding: 28px 16px;
    }

    .auth-card--register {
        max-width: 100%;
        padding: 42px 34px 34px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .auth-page {
        align-items: flex-start;
        padding: 14px 10px 28px;
    }

    .auth-card--login,
    .auth-card--register {
        max-width: 100%;
        margin-top: 10px;
        padding: 32px 19px 27px;
        border-radius: 16px;
    }

    .auth-card::before {
        height: 4px;
    }

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

    .auth-logo-mark {
        width: 43px;
        height: 43px;
        border-radius: 11px;
        font-size: 19px;
    }

    .auth-logo-text strong {
        font-size: 18px;
    }

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

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

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

    .form-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

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

    .field label {
        font-size: 13.5px;
    }

    .field input {
        height: 52px;
        font-size: 14.5px;
    }

    .photo-picker {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 17px;
        padding: 20px 17px;
    }

    .photo-preview {
        width: 126px;
        height: 126px;
    }

    .photo-content {
        width: 100%;
        text-align: center;
    }

    .photo-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .photo-actions {
        justify-content: center;
    }

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

    .dni-button {
        width: 52px;
        height: 52px;
    }

    .auth-button {
        height: 52px;
    }

    .auth-pending {
        text-align: center;
    }

    .auth-register {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 390px) {
    .auth-card--login,
    .auth-card--register {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-logo-text span {
        display: none;
    }
}
/* =========================================================
   TECOMSER - AJUSTE LIMPIO FINAL
   ========================================================= */

/* Quitar rayas, franjas y adornos superiores */
.auth-card,
.auth-card--login,
.auth-card--register {
    border-top: 1px solid #dce2e9 !important;
}

.auth-card::before,
.auth-card::after,
.auth-card--login::before,
.auth-card--login::after,
.auth-card--register::before,
.auth-card--register::after {
    display: none !important;
    content: none !important;
}

/* =========================================================
   LOGIN
   Un poco más grande
   ========================================================= */

.auth-card--login {
    width: 100%;
    /* 600 y no 520: en la tableta la tarjeta quedaba como una tira con dos
       palmos de blanco a cada lado. Este es el ancho que manda de verdad
       (el !important le gana a la hoja de la pagina), asi que se cambia
       aqui; los otros dos sitios donde figura se dejaron en 600 para que
       den lo mismo gane el que gane. */
    max-width: 600px !important;

    padding:
        46px
        46px
        38px !important;

    border-radius: 18px !important;

    background: #ffffff !important;

    border:
        1px solid
        #dce2e9 !important;

    box-shadow:
        0 24px 65px rgba(6, 20, 38, 0.09),
        0 4px 14px rgba(6, 20, 38, 0.035) !important;
}


/* LOGO LOGIN */

.auth-card--login .auth-logo {
    margin-bottom: 34px;
}

.auth-card--login .auth-logo-mark {
    width: 48px;
    height: 48px;

    border-radius: 11px;

    background: #07182d;

    font-size: 21px;
}

.auth-card--login .auth-logo-text strong {
    font-size: 21px;

    color: #07182d;
}


/* TITULO */

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

.auth-card--login .auth-heading h1 {
    font-size: 30px;

    color: #07182d;

    font-weight: 850;
}

.auth-card--login .auth-heading p {
    max-width: 390px;

    font-size: 14.5px;

    color: #64748b;

    line-height: 1.6;
}


/* CAMPOS LOGIN */

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

.auth-card--login .field label {
    font-size: 14px;

    color: #334155;
}

.auth-card--login .field input {
    height: 54px;

    padding-left: 16px;
    padding-right: 16px;

    border:
        1px solid
        #d5dce5;

    border-radius: 10px;

    font-size: 15px;
}

.auth-card--login .password-field input {
    padding-right: 54px;
}


/* BOTON */

.auth-card--login .auth-button {
    height: 54px;

    border-radius: 10px;

    background: #07182d;

    font-size: 15px;
    font-weight: 800;
}

.auth-card--login .auth-button:hover {
    background: #102a46;
}


/* REGISTRO */

.auth-card--login .auth-register {
    margin-top: 27px;
    padding-top: 24px;

    font-size: 13.5px;
}

.auth-card--login .auth-register a {
    color: #07182d;
}


/* FOOTER */

.auth-card--login .auth-footer {
    margin-top: 25px;

    font-size: 11.5px;

    color: #94a3b8;
}


/* =========================================================
   REGISTRO
   También sin adornos inútiles
   ========================================================= */

.auth-card--register {
    border:
        1px solid
        #dce2e9 !important;

    background:
        #ffffff !important;

    box-shadow:
        0 24px 65px rgba(6, 20, 38, 0.08),
        0 4px 14px rgba(6, 20, 38, 0.03) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .auth-card--login {
        max-width: 100% !important;

        padding:
            30px
            21px
            27px !important;
    }

    .auth-card--login .auth-heading h1 {
        font-size: 26px;
    }

    .auth-card--login .field input {
        height: 51px;
    }

    .auth-card--login .auth-button {
        height: 51px;
    }
}/* TECOMSER_CAMERA_LIVE_V1 */

/* Sin rayas decorativas */
.auth-card::before,
.auth-card::after,
.photo-picker::before,
.photo-picker::after {
    content: none !important;
    display: none !important;
}

.auth-card,
.auth-card--login,
.auth-card--register {
    border: 1px solid #d5dce5 !important;
    border-top: 1px solid #d5dce5 !important;
    border-left: 1px solid #d5dce5 !important;
}

.auth-pending {
    border: 1px solid #d7dee7 !important;
    border-left: 1px solid #d7dee7 !important;
}

/* Accion de camara */
.photo-action--camera {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #29425f;
    background: #edf2f7;
    color: #0a1d35;
}

.photo-action--camera:hover {
    border-color: #0a1d35;
    background: #e3eaf2;
    color: #061426;
}

.photo-action--camera svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Camara en vivo */
.camera-live {
    margin-top: -6px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #07182d;
    box-shadow: 0 18px 45px rgba(6, 20, 38, .12);
}

.camera-live[hidden] {
    display: none !important;
}

.camera-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.camera-live-head > div {
    display: grid;
    gap: 3px;
}

.camera-live-head strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
}

.camera-live-head span:not(.camera-live-dot) {
    color: #9fb0c4;
    font-size: 12px;
}

.camera-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.camera-live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

.camera-stage {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: #020817;
}

.camera-stage video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(52%, 230px);
    aspect-ratio: .80;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,.68);
    border-radius: 48% 48% 44% 44% / 42% 42% 52% 52%;
    box-shadow: 0 0 0 999px rgba(2,8,23,.16);
    pointer-events: none;
}

.camera-live-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.camera-capture,
.camera-cancel {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 800;
}

.camera-capture {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #07182d;
}

.camera-capture:hover {
    background: #e9eef4;
}

.camera-cancel {
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.07);
    color: #e2e8f0;
}

.camera-cancel:hover {
    background: rgba(255,255,255,.12);
}

.camera-message {
    display: block;
    margin-top: 11px;
    color: #9fb0c4;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
}

.camera-message.is-error {
    color: #fecaca;
}

@media (max-width: 620px) {
    .camera-live {
        padding: 12px;
        border-radius: 13px;
    }

    .camera-live-head {
        align-items: flex-start;
    }

    .camera-live-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .camera-capture,
    .camera-cancel {
        width: 100%;
    }
}
