/* ================================================================
   BARCINO RESERVAS — AUTH PAGES (Login / Register)
   Estilo "Estadio editorial" (Variant A)
   Panel izquierdo azul marino (#0f1d44), Fraunces editorial
   ================================================================ */

/* ── TOKENS ── */
:root {
    --au-navy:       #0f1d44;
    --au-navy-soft:  #16285a;
    --au-grana:      #c0364d;
    --au-grana-soft: #d94d63;
    --au-cream:      #f3eee5;
    --au-ink:        #0a0e1f;
    --au-r:          4px;
}

/* ── ROOT ── */
.au-root {
    display: flex;
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--au-navy);
}

/* ── PANEL IZQUIERDO (marca) ── */
.au-left {
    width: 46%;
    min-height: 100vh;
    background: var(--au-navy);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 36px 48px 48px;
    flex-shrink: 0;
}

.au-left-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(192,54,77,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, #16285a 0%, transparent 60%);
    pointer-events: none;
}

.au-left-grid {
    display: none;
}

/* Logo header */
.au-left-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.au-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.au-logo-badge {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.au-logo-name {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 17px;
    color: #fff;
    letter-spacing: -0.01em;
    display: block;
    line-height: 1;
}

.au-logo-sub {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9px;
    color: rgba(243,238,229,.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

.au-back-link {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243,238,229,.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}

    .au-back-link:hover {
        color: rgba(243,238,229,.9);
    }

/* Tagline area */
.au-left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.au-eyebrow-label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--au-grana-soft);
}

    .au-eyebrow-label::before {
        content: "";
        display: block;
        width: 32px;
        height: 1.5px;
        background: var(--au-grana-soft);
        flex-shrink: 0;
    }

.au-display {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

/* Scoreboard widget */
.au-scoreboard {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(243,238,229,.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.au-score-cell {
    padding: 0;
    background: transparent;
}

.au-score-key {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(243,238,229,.5);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.au-score-val {
    font-family: "Fraunces", Georgia, serif;
    font-size: 44px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: var(--au-grana-soft);
}

.au-score-sub {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    color: rgba(243,238,229,.6);
    margin-top: 4px;
    letter-spacing: 0.1em;
}

/* Left footer */
.au-left-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-top: 32px;
}

.au-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    text-transform: uppercase;
    background: rgba(76,200,140,.12);
    color: #7fd9a7;
}

.au-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7fd9a7;
    animation: au-pulse 2s ease-in-out infinite;
}

@keyframes au-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.au-footnote {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    color: rgba(243,238,229,.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── PANEL DERECHO (formulario) ── */
.au-right {
    flex: 1;
    min-height: 100vh;
    background: var(--au-cream);
    color: var(--au-ink);
    display: flex;
    flex-direction: column;
}

.au-right-top {
    padding: 36px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.au-right-top-alt {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(10,14,31,.55);
}

    .au-right-top-alt a {
        color: var(--au-grana);
        text-decoration: none;
        font-weight: 700;
        margin-left: 6px;
    }

        .au-right-top-alt a:hover {
            text-decoration: underline;
        }

.au-right-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px;
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.au-right-footer {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    padding: 24px 56px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(10,14,31,.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-wrap: wrap;
    gap: 8px;
}

    .au-right-footer a {
        color: rgba(10,14,31,.4);
        text-decoration: none;
    }

        .au-right-footer a:hover {
            color: rgba(10,14,31,.7);
        }

/* ── FORM ELEMENTS ── */
.au-form {
    display: grid;
    gap: 20px;
}

.au-form-title {
    font-size: clamp(48px, 6vw, 60px);
    margin: 0 0 16px;
    color: var(--au-ink);
}

.au-form-sub {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(10,14,31,.65);
    margin-top: 0;
    margin-bottom: 36px;
    max-width: 460px;
}

.au-field-eyebrow {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--au-grana);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .au-field-eyebrow::before {
        content: "";
        display: block;
        width: 28px;
        height: 1.5px;
        background: var(--au-grana);
        flex-shrink: 0;
    }

.au-label {
    display: block;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(10,14,31,.6);
    margin-bottom: 8px;
}

.au-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.au-label-link {
    font-size: 12px;
    color: var(--au-grana);
    text-decoration: none;
    font-weight: 600;
}

    .au-label-link:hover {
        text-decoration: underline;
    }

.au-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: var(--au-r);
    background: #fff;
    border: 1.5px solid rgba(10,14,31,.12);
    color: var(--au-ink);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

    .au-input:focus {
        border-color: var(--au-grana);
        box-shadow: 0 0 0 3px rgba(192,54,77,.12);
    }

    .au-input::placeholder {
        color: rgba(10,14,31,.35);
    }

.au-input-wrap {
    position: relative;
}

.au-input-pr {
    padding-right: 48px;
}

.au-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(10,14,31,.4);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
}

    .au-eye-btn:hover {
        color: var(--au-ink);
    }

/* 2-col grids */
.au-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.au-grid-2-asym {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12px;
}

/* Strength meter */
.au-strength-row {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.au-strength-seg {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(10,14,31,.1);
    transition: background .2s;
}

.au-strength-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* Account type buttons */
.au-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.au-type-btn {
    cursor: pointer;
    text-align: left;
    padding: 14px 16px;
    border: 1.5px solid rgba(10,14,31,.12);
    background: #fff;
    border-radius: var(--au-r);
    transition: all .12s;
    font-family: "Inter", system-ui, sans-serif;
    width: 100%;
}

    .au-type-btn.selected {
        border-color: var(--au-grana);
        background: rgba(192,54,77,.06);
    }

.au-type-icon {
    color: var(--au-grana);
    font-size: 16px;
    margin-right: 8px;
}

.au-type-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--au-ink);
    display: block;
    margin-bottom: 4px;
}

.au-type-desc {
    font-size: 12px;
    color: rgba(10,14,31,.55);
}

/* Checkbox */
.au-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

    .au-check input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 3px;
        border: 1.5px solid rgba(10,14,31,.25);
        background: #fff;
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 2px;
        position: relative;
        transition: all .15s;
    }

    .au-check input[type="checkbox"]:checked {
        background: var(--au-grana);
        border-color: var(--au-grana);
    }

    .au-check input[type="checkbox"]:checked::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 5px;
        height: 10px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.au-check-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(10,14,31,.7);
}

    .au-check-text a {
        color: var(--au-grana);
        text-decoration: none;
    }

        .au-check-text a:hover {
            text-decoration: underline;
        }

/* Buttons */
.au-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: var(--au-r);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
    border: none;
    font-family: "Inter", system-ui, sans-serif;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.au-btn-primary {
    background: var(--au-grana);
    color: #fff;
}

    .au-btn-primary:hover:not(:disabled) {
        background: var(--au-grana-soft);
        transform: translateY(-1px);
    }

    .au-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.au-btn-ghost {
    background: #fff;
    color: var(--au-ink);
    border: 1.5px solid rgba(10,14,31,.12);
}

    .au-btn-ghost:hover {
        border-color: rgba(10,14,31,.3);
    }

.au-btn-dark {
    background: var(--au-ink);
    color: #fff;
    border: 1.5px solid var(--au-ink);
}

/* Divider */
.au-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0;
}

    .au-divider::before,
    .au-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(10,14,31,.12);
    }

.au-divider-text {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(10,14,31,.45);
    text-transform: uppercase;
}

/* Alerts */
.au-alert {
    padding: 12px 16px;
    border-radius: var(--au-r);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.au-alert-error {
    background: rgba(192,54,77,.08);
    border: 1px solid rgba(192,54,77,.2);
    color: var(--au-grana);
}

.au-alert-success {
    background: rgba(56,200,120,.08);
    border: 1px solid rgba(56,200,120,.2);
    color: #1a7a44;
}

.au-legal {
    font-size: 12px;
    color: rgba(10,14,31,.5);
    text-align: center;
    margin-top: 8px;
    line-height: 1.6;
}

    .au-legal a {
        color: var(--au-grana);
    }

/* Language toggle */
.au-lang-btn {
    background: transparent;
    border: 1px solid rgba(10,14,31,.15);
    cursor: pointer;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--au-ink);
    padding: 6px 10px;
    border-radius: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .au-left {
        display: none;
    }

    .au-right {
        min-height: 100vh;
    }

    .au-right-top,
    .au-right-body,
    .au-right-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .au-right-body {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .au-grid-2,
    .au-grid-2-asym,
    .au-type-grid {
        grid-template-columns: 1fr;
    }
}
