.customer-auth {
    --auth-navy: #071e63;
    --auth-blue: #0d3f94;
    --auth-green: #55b51f;
    --auth-ink: #14213d;
    --auth-muted: #64748b;
    --auth-border: #dfe7f1;
    min-height: calc(100vh - 120px);
    padding: clamp(38px, 6vw, 82px) 16px;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 15% 18%, rgba(85,181,31,.12), transparent 22rem),
        radial-gradient(circle at 88% 82%, rgba(13,63,148,.10), transparent 25rem),
        linear-gradient(135deg, #f7fbff 0%, #fff 52%, #f4f8fc 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.customer-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .38;
    background-image: radial-gradient(#9db0c8 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.auth-shell { width: min(1080px, 100%); margin: 0 auto; }
.auth-shell.auth-shell-compact { width: min(940px, 100%); }
.auth-shell.auth-shell-wide { width: min(1180px, 100%); }

.auth-card {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(440px, 1.2fr);
    border: 1px solid rgba(218,228,239,.9);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 70px rgba(7,30,99,.13);
}

.auth-card.auth-card-wide { grid-template-columns: minmax(270px, .68fr) minmax(540px, 1.32fr); }

.auth-story {
    position: relative;
    padding: clamp(34px, 5vw, 58px);
    color: #fff;
    background:
        linear-gradient(155deg, rgba(7,30,99,.96), rgba(13,63,148,.91)),
        url('/images/travelo-hero-plane-mountains.webp') center / cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 590px;
}

.auth-story::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    bottom: -95px;
    border: 44px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.auth-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #b9e9a2; }
.auth-kicker::before { content: ""; width: 28px; height: 2px; background: var(--auth-green); }
.auth-story h1 { margin: 20px 0 14px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.auth-story p { max-width: 34rem; margin: 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.auth-benefits { display: grid; gap: 14px; margin-top: 40px; }
.auth-benefit { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; }
.auth-benefit i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #d6f8c6; background: rgba(255,255,255,.1); }
.auth-story-note { position: relative; z-index: 1; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.68); font-size: 12px; }

.auth-panel { padding: clamp(30px, 5vw, 58px); align-self: center; width: 100%; }
.auth-panel-header { margin-bottom: 30px; }
.auth-eyebrow { margin-bottom: 8px; color: var(--auth-green); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.auth-panel h2 { margin: 0; color: var(--auth-navy); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.035em; }
.auth-panel-header p { margin: 10px 0 0; color: var(--auth-muted); line-height: 1.65; }

.auth-form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 19px 16px; }
.auth-field { grid-column: span 12; }
.auth-field.half { grid-column: span 6; }
.auth-field.third { grid-column: span 4; }
.auth-field label { display: block; margin-bottom: 8px; color: #263751; font-size: 13px; font-weight: 750; }
.auth-field .required { color: #d64545; }
.auth-control-wrap { position: relative; }
.auth-control-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8292a8; pointer-events: none; }
.auth-control-wrap .auth-input { padding-left: 44px; }
.auth-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    background: #fbfdff;
    color: var(--auth-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input:focus { border-color: var(--auth-blue); background: #fff; box-shadow: 0 0 0 4px rgba(13,63,148,.1); }
.auth-input::placeholder { color: #a0aec0; }
.auth-password .auth-input { padding-right: 48px; }
.auth-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #74849b; }
.auth-toggle:hover { color: var(--auth-navy); background: #edf3fa; }
.field-validation-error { display: block; margin-top: 6px; color: #c93434 !important; font-size: 12px; }

.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 17px 0 24px; color: var(--auth-muted); font-size: 13px; }
.auth-link { color: var(--auth-blue); font-weight: 750; text-decoration: none; }
.auth-link:hover { color: var(--auth-green); }
.auth-submit { width: 100%; min-height: 52px; border: 0; border-radius: 11px; color: #fff; background: var(--auth-navy); font-weight: 800; box-shadow: 0 12px 22px rgba(7,30,99,.19); transition: transform .2s, background .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-2px); background: var(--auth-blue); box-shadow: 0 16px 28px rgba(7,30,99,.23); }
.auth-submit:disabled { opacity: .72; transform: none; }
.auth-secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 11px; border: 1px solid var(--auth-border); border-radius: 11px; color: #35445c; background: #fff; font-weight: 750; text-decoration: none; }
.auth-secondary:hover { color: var(--auth-navy); border-color: #bdcad9; background: #f8fafc; }
.auth-switch { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #edf1f6; text-align: center; color: var(--auth-muted); font-size: 14px; }

.auth-section-title { grid-column: span 12; display: flex; align-items: center; gap: 12px; margin: 8px 0 -1px; color: var(--auth-navy); font-size: 14px; font-weight: 850; }
.auth-section-title::after { content: ""; height: 1px; flex: 1; background: #e8edf3; }
.auth-section-title i { color: var(--auth-green); }
.auth-optional { color: #8997aa; font-size: 11px; font-weight: 600; }

.auth-alert { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px; border: 0; border-radius: 11px; font-size: 13px; }
.auth-alert.alert-success { color: #27651a; background: #edf9e8; }
.auth-alert.alert-info { color: #124f79; background: #eaf6fd; }
.auth-alert.alert-danger { color: #942f2f; background: #fff0f0; }
.validation-summary-valid { display: none; }
.auth-code { text-align: center; letter-spacing: .32em; font-size: 22px; font-weight: 800; }
.auth-account-types { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.auth-account-option { position:relative; }
.auth-account-option input { position:absolute; opacity:0; pointer-events:none; }
.auth-account-option label { display:flex; align-items:center; gap:11px; min-height:54px; margin:0; padding:10px 14px; border:1px solid var(--auth-border); border-radius:11px; background:#fbfdff; cursor:pointer; }
.auth-account-option label i { color:var(--auth-blue); }
.auth-account-option input:checked + label { color:var(--auth-navy); border-color:var(--auth-blue); background:#eef4ff; box-shadow:0 0 0 3px rgba(13,63,148,.08); }

.auth-loading-overlay { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; background: rgba(4,17,50,.72); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.auth-loading-overlay.is-visible { opacity: 1; visibility: visible; }
.auth-loading-card { width: min(360px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 28px 65px rgba(0,0,0,.28); }
.auth-loader-route { position: relative; width: 110px; height: 34px; margin: 0 auto 20px; border-bottom: 2px dashed #b8c8dc; }
.auth-loader-route i { position: absolute; left: 0; bottom: 6px; color: var(--auth-green); font-size: 22px; animation: authFlight 1.4s ease-in-out infinite; }
.auth-loading-card strong { display: block; color: var(--auth-navy); font-size: 18px; }
.auth-loading-card span { display: block; margin-top: 7px; color: var(--auth-muted); font-size: 13px; }
@keyframes authFlight { 0% { transform: translateX(0) rotate(-8deg); } 70%,100% { transform: translateX(88px) rotate(3deg); opacity: .2; } }

@media (max-width: 820px) {
    .auth-card, .auth-card.auth-card-wide { grid-template-columns: 1fr; }
    .auth-story { min-height: auto; padding: 34px; }
    .auth-story h1 { max-width: 520px; }
    .auth-benefits { grid-template-columns: repeat(3, 1fr); }
    .auth-story-note { display: none; }
}
@media (max-width: 575px) {
    .customer-auth { padding: 20px 10px 38px; }
    .auth-card { border-radius: 17px; }
    .auth-story { padding: 28px 24px; }
    .auth-story p, .auth-benefits { display: none; }
    .auth-panel { padding: 28px 22px; }
    .auth-field.half, .auth-field.third { grid-column: span 12; }
    .auth-form-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .auth-loader-route i, .auth-submit { animation: none; transition: none; } }
