/* ExpSplits — sign-on / auth screens. Fully self-contained: no Bootstrap,
   no icon font, no jQuery. Travel/adventure theme with a split layout. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: #1f2430;
    background: #0e1a3a;
    overflow: hidden;
}

/* ---------- two-pane split layout ---------- */
.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ---------- left: hero ---------- */
.auth-hero {
    position: relative;
    color: #fff;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 45%),
      radial-gradient(circle at 80% 90%, rgba(255,209,102,.15), transparent 40%),
      linear-gradient(135deg, #0e1a3a 0%, #1a237e 35%, #00897b 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
    0%   { background-position: 0% 0%, 100% 100%, 0% 50%; }
    100% { background-position: 30% 20%, 70% 80%, 100% 50%; }
}

/* subtle topo-line layer */
.auth-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      repeating-radial-gradient(circle at 90% 110%,
        rgba(255,255,255,.06) 0 1px, transparent 1px 28px);
    pointer-events: none;
}

.brand {
    display: flex; align-items: center; gap: .65rem;
    font-size: 1.4rem; font-weight: 800; letter-spacing: .3px;
    z-index: 1;
}
.brand .brand-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.brand .brand-mark svg { width: 22px; height: 22px; }
.brand-tag { font-size: .8rem; font-weight: 500; opacity: .8; margin-left: .25rem; }

.hero-body { z-index: 1; max-width: 460px; }
.hero-body h1 {
    font-size: 2.6rem; line-height: 1.1; margin: 0 0 .9rem 0; letter-spacing: -.5px;
}
.hero-body h1 .accent { color: #ffd166; }
.hero-body p { font-size: 1.05rem; opacity: .92; line-height: 1.55; margin: 0; max-width: 420px; }

.feature-strip {
    z-index: 1;
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.feature-strip .feat {
    display: flex; align-items: center; gap: .55rem;
    font-size: .88rem; opacity: .92;
}
.feature-strip .feat svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- right: form pane ---------- */
.auth-pane {
    background: #f6f7fb;
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem;
    overflow-y: auto;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: #fff; border-radius: 18px;
    padding: 2.25rem 2.25rem 2rem;
    box-shadow: 0 30px 80px rgba(14,26,58,.10), 0 2px 6px rgba(14,26,58,.04);
    border: 1px solid #eef0f6;
}
.auth-card h2 {
    margin: 0 0 .35rem 0; font-size: 1.55rem; color: #1a237e;
}
.auth-card .sub { color: #6c757d; margin: 0 0 1.4rem 0; font-size: .95rem; }

/* ---------- tab pills ---------- */
.tabs {
    display: grid; grid-template-columns: 1fr 1fr;
    background: #eef1f8; border-radius: 12px;
    padding: 4px; margin-bottom: 1.5rem;
    position: relative;
}
.tabs button {
    appearance: none; border: 0; background: transparent;
    padding: .65rem 0; font-weight: 600; font-size: .92rem;
    color: #4a5572; cursor: pointer; border-radius: 9px;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tabs button.active {
    background: #fff; color: #1a237e;
    box-shadow: 0 2px 8px rgba(26,35,126,.10);
}
.tabs button:focus { outline: 2px solid #00897b; outline-offset: 2px; }

/* ---------- form ---------- */
.field { margin-bottom: 1rem; }
.field label {
    display: block; font-size: .78rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    color: #4a5572; margin-bottom: .4rem;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.input {
    width: 100%;
    padding: .8rem .95rem;
    font-size: 1rem;
    border: 1.5px solid #e1e5ee;
    border-radius: 11px;
    background: #fff;
    color: #1f2430;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder { color: #a0a7b8; }
.input:hover { border-color: #c9d0e2; }
.input:focus {
    outline: none;
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0,137,123,.18);
    background: #fff;
}

.input-group { display: flex; gap: .5rem; }
.input-group .input.cc { flex: 0 0 130px; }

.btn-primary {
    width: 100%;
    padding: .85rem 1rem;
    border: 0; border-radius: 11px;
    color: #fff; font-weight: 700; font-size: 1rem;
    background: linear-gradient(135deg, #1a237e, #00897b);
    cursor: pointer; letter-spacing: .2px;
    box-shadow: 0 8px 20px rgba(26,35,126,.25);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(26,35,126,.30); }
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }
.btn-primary:focus { outline: 2px solid #ffd166; outline-offset: 3px; }
.btn-primary[disabled] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-link {
    background: none; border: 0; color: #00897b;
    font-weight: 600; font-size: .9rem; cursor: pointer; padding: 0;
}
.btn-link:hover { color: #006b62; text-decoration: underline; }

.field-row { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; }
.muted { color: #6c757d; font-size: .85rem; }

/* ---------- alerts / toasts ---------- */
.alert {
    padding: .7rem .9rem; border-radius: 10px;
    font-size: .9rem; margin-bottom: 1rem;
    display: none;
}
.alert.show { display: block; }
.alert-error  { background: #fdecee; color: #b3192a; border: 1px solid #f3c7cd; }
.alert-success{ background: #e8f5f3; color: #006b62; border: 1px solid #b9e0db; }
.alert-info   { background: #e8eaf6; color: #1a237e; border: 1px solid #c5cae9; }

/* ---------- modal-less forgot panel (inline swap) ---------- */
.pane { display: none; }
.pane.show { display: block; }

/* ---------- footer line in card ---------- */
.card-foot {
    margin-top: 1.5rem; text-align: center;
    font-size: .82rem; color: #95a0b6;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero {
        padding: 2rem 1.75rem 2.5rem;
        min-height: auto;
    }
    .hero-body h1 { font-size: 1.85rem; }
    .auth-pane { padding: 1.25rem; align-items: flex-start; }
    .auth-card { padding: 1.75rem 1.5rem; box-shadow: 0 10px 30px rgba(14,26,58,.08); }
}
@media (max-height: 700px) {
    .auth-hero { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}
