/* ========================================================
   VOCFlight sign-in / sign-up — "boarding pass" design.
   Own layout; colors come from the --gf-* tokens in gflights.css.
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.vf-auth { margin: 0; min-height: 100vh; background: var(--gf-bg); color: var(--gf-text); }
.vf-auth h1, .vf-auth h2, .vf-auth p, .vf-auth ul { margin: 0; }
.vf-auth input, .vf-auth button { font: inherit; }

.vf-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Brand panel ---------- */
.vf-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    padding: 40px 48px 0; background: var(--h-bg); border-right: 1px solid var(--gf-border);
}
.vf-brand-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--gf-text); text-decoration: none; font-size: 22px; font-weight: 500; }
.vf-brand-logo img { width: 36px; height: 36px; border-radius: 10px; }
.vf-brand-copy { position: relative; z-index: 1; max-width: 460px; margin-top: 12vh; }
.vf-eyebrow { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 12px; background: var(--gf-accent-bg); color: var(--gf-accent); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; }
.vf-brand-title { font-size: 44px; line-height: 52px; font-weight: 400; letter-spacing: -0.5px; }
.vf-brand-title em { font-style: normal; color: var(--gf-accent); }
.vf-brand-text { margin-top: 16px; color: var(--gf-text-2); font-size: 16px; line-height: 24px; }
.vf-features { list-style: none; padding: 0; margin-top: 28px !important; display: flex; flex-direction: column; gap: 14px; }
.vf-features li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.vf-feat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: var(--gf-surface); color: var(--gf-accent); }
.vf-brand-art { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; min-height: 200px; }
.vf-brand-art .gf-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf-brand-art .h-bg { fill: transparent; }

/* ---------- Form side ---------- */
.vf-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 32px; }
.vf-theme { position: absolute; top: 16px; right: 16px; }
.vf-side-foot { margin-top: 28px; display: flex; gap: 20px; color: var(--gf-text-2); font-size: 12px; }
.vf-side-foot a { color: var(--gf-text-2); text-decoration: none; }
.vf-side-foot a:hover { color: var(--gf-text); }

/* ---------- Boarding pass ---------- */
.vf-pass { width: 100%; max-width: 440px; border-radius: 20px; background: var(--gf-surface); box-shadow: var(--gf-shadow); overflow: hidden; }
:root[data-theme="light"] .vf-pass { border: 1px solid var(--gf-border); box-shadow: 0 8px 28px rgba(60, 64, 67, 0.12); }
.vf-pass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; background: var(--gf-accent-solid); color: var(--gf-on-accent); }
.vf-pass-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.vf-pass-route { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.vf-pass-route svg { transform: rotate(90deg); }
.vf-pass-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 28px 0; }
.vf-pass-meta div { display: flex; flex-direction: column; gap: 2px; }
.vf-pass-meta small { color: var(--gf-text-2); font-size: 10px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; }
.vf-pass-meta b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-pass-body { padding: 22px 28px 26px; }
.vf-pass-title { font-size: 26px; line-height: 34px; font-weight: 500; }
.vf-pass-sub { margin-top: 4px !important; color: var(--gf-text-2); font-size: 14px; line-height: 20px; }

/* perforated tear line with side notches */
.vf-perf { position: relative; height: 24px; }
.vf-perf::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--gf-border-strong); }
.vf-perf::after, .vf-perf span { content: ''; position: absolute; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--gf-bg); }
.vf-perf::after { left: -12px; }
.vf-perf span { right: -12px; }
:root[data-theme="light"] .vf-perf::after, :root[data-theme="light"] .vf-perf span { box-shadow: inset 0 0 0 1px var(--gf-border); }

.vf-pass-stub { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px 20px; }
.vf-barcode { height: 34px; width: 132px; flex: 0 0 auto; opacity: 0.55;
    background: repeating-linear-gradient(90deg, var(--gf-text) 0 2px, transparent 2px 4px, var(--gf-text) 4px 5px, transparent 5px 8px, var(--gf-text) 8px 11px, transparent 11px 13px); }
.vf-stub-text { color: var(--gf-text-2); font-size: 13px; text-align: right; }
.vf-stub-text a { display: block; color: var(--gf-accent); font-weight: 500; text-decoration: none; }
.vf-stub-text a:hover { text-decoration: underline; }

/* ---------- Form ---------- */
.vf-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.vf-field { display: flex; flex-direction: column; gap: 6px; }
.vf-field > label, .vf-label { color: var(--gf-text-2); font-size: 12px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; }
.vf-input-wrap { position: relative; display: flex; align-items: center; }
.vf-input-wrap > svg { position: absolute; left: 14px; color: var(--gf-text-2); pointer-events: none; }
.vf-input-wrap input {
    width: 100%; height: 50px; padding: 0 46px 0 44px; border: 1px solid transparent; border-radius: 12px;
    background: var(--gf-bg); color: var(--gf-text); font-size: 16px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
:root[data-theme="light"] .vf-input-wrap input { background: #f1f3f4; }
.vf-input-wrap input::placeholder { color: var(--gf-text-2); opacity: 0.8; }
.vf-input-wrap input:focus { border-color: var(--gf-accent); box-shadow: 0 0 0 3px var(--gf-accent-bg); }
.vf-input-wrap input:read-only { color: var(--gf-text-2); }
.vf-input-wrap input:disabled { opacity: 0.5; }
.vf-input-wrap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--gf-bg) inset; -webkit-text-fill-color: var(--gf-text); }
.vf-eye { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--gf-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vf-eye:hover { background: var(--gf-hover); color: var(--gf-text); }
.vf-eye[aria-pressed="true"] { color: var(--gf-accent); }
.vf-hint { color: var(--gf-text-2); font-size: 12px; }

.vf-passenger {
    display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px; border-radius: 12px;
    background: var(--gf-accent-bg); color: var(--gf-text);
}
.vf-passenger-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--gf-avatar); color: #fff; font-weight: 500; }
.vf-passenger-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vf-passenger-text small { color: var(--gf-accent); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.vf-passenger-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.vf-link-btn { border: 0; background: transparent; color: var(--gf-accent); font-size: 13px; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.vf-link-btn:hover { background: var(--gf-hover); }

.vf-alert { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--gf-red-bg); color: var(--gf-red); font-size: 14px; line-height: 20px; }
.vf-form .vf-alert { margin-top: 0; }
.vf-alert svg { flex: 0 0 auto; margin-top: 1px; }
.vf-alert.is-ok { background: var(--gf-green-bg); color: var(--gf-green); }

.vf-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 4px;
    border: 0; border-radius: 25px; background: var(--gf-accent-solid); color: var(--gf-on-accent); cursor: pointer;
    font-size: 15px; font-weight: 500; letter-spacing: 0.3px; transition: filter 0.15s ease, transform 0.1s ease;
}
.vf-submit:hover { filter: brightness(1.06); }
.vf-submit:active { transform: translateY(1px); }
.vf-submit:disabled { opacity: 0.55; cursor: default; filter: none; transform: none; }
.vf-submit svg { transition: transform 0.2s ease; }
.vf-submit:hover:not(:disabled) svg { transform: translateX(3px); }

.vf-auth :focus-visible { outline: 2px solid var(--gf-accent); outline-offset: 2px; }
.vf-input-wrap input:focus-visible { outline: none; }

/* ---------- Minimal login (username + password only) ---------- */
.vf-minimal .vf-brand-art { height: 44vh; min-height: 260px; }
.vf-minimal .vf-pass { max-width: 400px; }
.vf-minimal .vf-pass-head { padding-top: 14px; padding-bottom: 14px; }
.vf-minimal .vf-pass-body { padding-top: 26px; padding-bottom: 30px; }
.vf-minimal .vf-form { margin-top: 20px; gap: 14px; }
.vf-minimal .vf-submit { margin-top: 8px; }
/* Desktop: one centered card; the brand panel becomes the page backdrop. */
@media (min-width: 961px) {
    .vf-minimal .vf-page { display: block; position: relative; min-height: 100vh; }
    .vf-minimal .vf-brand { position: absolute; inset: 0; padding: 28px 36px 0; border-right: 0; background: var(--gf-bg); }
    .vf-minimal .vf-brand-art { height: 40vh; min-height: 240px; }
    .vf-minimal .vf-brand-art .h-plane { display: none; } /* would peek out under the centered card */
    .vf-minimal .vf-side { position: relative; z-index: 1; min-height: 100vh; padding: 80px 24px 12vh; pointer-events: none; }
    .vf-minimal .vf-side > * { pointer-events: auto; }
}
.vf-minimal-link { display: block; margin-top: 18px; text-align: center; color: var(--gf-accent); font-size: 14px; font-weight: 500; text-decoration: none; }
.vf-minimal-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .vf-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .vf-brand { padding: 20px 20px 0; min-height: 0; border-right: 0; border-bottom: 1px solid var(--gf-border); }
    .vf-brand-copy { margin: 20px 0 0; max-width: none; padding-bottom: 150px; }
    .vf-brand-title { font-size: 30px; line-height: 38px; }
    .vf-brand-text { font-size: 15px; }
    .vf-features { display: none; }
    .vf-brand-art { height: 150px; min-height: 0; }
    .vf-side { justify-content: flex-start; padding: 0 16px 28px; margin-top: -48px; }
    .vf-theme { position: fixed; top: 12px; right: 12px; z-index: 5; }
    .vf-minimal .vf-brand { padding-bottom: 170px; }
    .vf-minimal .vf-brand-art { height: 170px; min-height: 0; }
}
@media (max-width: 420px) {
    .vf-pass-head, .vf-pass-meta, .vf-pass-body, .vf-pass-stub { padding-left: 20px; padding-right: 20px; }
    .vf-pass-title { font-size: 23px; }
    .vf-barcode { width: 96px; }
}
