/* JETTS login — dark navy brand panel (matches console sidebar) + jet flights */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/console/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand navy (console) — Instant Sync layout, old JettPro colors */
    --navy-950: #002B4D;
    --night-900: #003A66;
    --night-800: #004D85;
    --brand-navy: #004D85;
    --navy-900: #004D85;
    --navy-800: #003A66;
    --primary-600: #004D85;
    --primary-700: #003A66;
    --accent-500: #DD5600;
    --accent-soft: #FFB380;
    --blue-50: #F0F9FF;
    --red-500: #D64545;
    --green-500: #16A34A;
    --bg-page: #FFFFFF;
    --surface: #FFFFFF;
    --border: #CBD5E1;
    --text-900: #0F172A;
    --text-500: #64748B;
    --text-sidebar: #94A3B8;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'Inter', sans-serif;
    --radius-card: 10px;
    --radius-ctl: 8px;
    --radius-panel: 12px;
    --focus-ring: rgba(0, 77, 133, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body.login-page { height: 100%; }

body.login-page {
    position: relative;
    font-family: var(--font-ui);
    color: var(--text-900);
    /* background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 77, 133, 0.1), transparent 60%),
        radial-gradient(ellipse 45% 40% at 0% 50%, rgba(0, 58, 102, 0.07), transparent 55%),
        radial-gradient(ellipse 45% 40% at 100% 60%, rgba(0, 77, 133, 0.08), transparent 55%),
        linear-gradient(180deg, #E4ECF4 0%, #EEF3F8 45%, #E8EEF4 100%); */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 28px 20px;
}

/* ---------- Page backdrop (outside login card) ---------- */

.page-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
}

.page-glow-tl {
    width: 640px;
    height: 640px;
    top: -220px;
    left: -180px;
    background: rgba(0, 77, 133, 0.12);
}

.page-glow-br {
    width: 680px;
    height: 680px;
    bottom: -240px;
    right: -200px;
    background: rgba(0, 58, 102, 0.11);
}

.page-glow-tr,
.page-glow-bl {
    display: none;
}

.page-ring {
    position: absolute;
    width: min(980px, 72vw);
    height: auto;
    aspect-ratio: 1 / 1;
    opacity: 0.08;
}

.page-ring-l {
    left: -22%;
    top: -18%;
    width: min(1040px, 78vw);
}

.page-ring-r {
    right: -24%;
    bottom: -20%;
    width: min(1100px, 80vw);
}

.page-orbit,
.page-flight {
    display: none !important;
}

.login-split {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1120px;
    min-height: 640px;
    height: min(720px, calc(100vh - 56px));
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #D8E0EA;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 18px 48px rgba(0, 61, 110, 0.14);
}

/* ---------- Left brand panel (login-bg photo, no animations) ---------- */

.brand-panel {
    position: relative;
    width: 46%;
    min-width: 0;
    flex: 0 0 46%;
    align-self: stretch;
    background-color: #004D85;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 32px 44px;
    overflow: hidden;
    isolation: isolate;
    border-right: none;
}

/* Full-bleed login-bg — plane kept centered in the panel */
.brand-panel > .brand-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Soft scrim so logo + copy stay readable; keep the plane visible in center */
.brand-panel::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
    linear-gradient(180deg, rgba(0, 43, 77, 0.42) 0%, rgba(0, 43, 77, 0.08) 38%, rgba(0, 43, 77, 0.12) 58%, rgb(0 43 77) 100%);
}

/* Hide legacy animated sky / flights */
.jet-sky,
.sky-shapes,
.flight,
.brand-orbits,
.brand-ring {
    display: none !important;
}

.brand-lockup {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    max-width: 260px;
    box-shadow: none;
    align-self: flex-start;
}

.brand-copy {
    position: relative;
    z-index: 3;
    max-width: none;
    width: 100%;
    margin-top: auto;
    container-type: inline-size;
}

.brand-top,
.brand-foot {
    display: none;
}

.brand-lockup .brand-logo-img,
.brand-lockup .brand-logo-video {
    display: block;
    width: 100%;
    max-width: 175px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    /* Knock out black PNG background on navy panel */
    mix-blend-mode: screen;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #40ABE9 0%, var(--primary-700) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
}

.brand-text small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 3px;
}
.brand-headline {
    font-size: clamp(22px, 7cqw, 26px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: 340px;
    margin: 0 0 14px;
    color: #fff;
}

.brand-rule {
    display: block;
    width: 52px;
    height: 3px;
    margin: 0 0 16px;
    border: none;
    border-radius: 2px;
    background: linear-gradient(90deg, #FF7300 0%, #DD5600 100%);
    box-shadow: 0 0 12px rgba(255, 115, 0, 0.35);
}

.brand-headline-strong {
    display: block;
    font-weight: 700;
    color: #fff;
}

.brand-headline-light {
    display: block;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand-amp {
    font-weight: 300;
}

.brand-sub {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    max-width: 360px;
    margin: 0;
}

.system-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(0, 43, 77, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 9px 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.strip-sep { color: rgba(255, 255, 255, 0.45); }
.brand-foot {
    position: relative;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

/* staggered brand entrance — disabled (static login) */
.reveal {
    opacity: 1;
    transform: none;
    animation: none;
}
.reveal-1,
.reveal-2,
.reveal-3,
.reveal-4 {
    animation: none;
}

@keyframes reveal-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Jet sky (left) ---------- */

.jet-sky {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sky-aurora {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(ellipse 48% 32% at 22% 18%, rgba(255, 255, 255, 0.12), transparent 72%),
        radial-gradient(ellipse 42% 28% at 82% 78%, rgba(0, 43, 77, 0.35), transparent 70%);
    animation: aurora-drift 16s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    from { transform: translate(-2%, -1%) scale(1); }
    to   { transform: translate(3%, 2%) scale(1.04); }
}

/* Soft blueprint grid — unused */
.sky-grid,
.sky-stars,
.sky-aurora,
.sky-radar,
.sky-horizon,
.shape-blob,
.blob-a,
.blob-b {
    display: none !important;
}

/* Brand shapes — soft fade at split so circles don’t hard-cut */
.sky-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    /* -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.55) 88%, transparent 100%); */
}

.brand-orbits {
    position: absolute;
    top: -9%;
    right: -6%;
    left: auto;
    bottom: auto;
    width: 64%;
    height: 63%;
    display: block;
}

.brand-ring {
    position: absolute;
    left: auto;
    right: -4%;
    bottom: -8%;
    width: 88%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 450 / 300;
    transform: none;
    display: block;
    pointer-events: none;
}

.sky-radar {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -100px;
    bottom: -80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        radial-gradient(circle, transparent 38%, rgba(255, 255, 255, 0.06) 39%, transparent 40%),
        radial-gradient(circle, transparent 58%, rgba(255, 255, 255, 0.07) 59%, transparent 60%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 36px rgba(255, 255, 255, 0.04);
    opacity: 0.95;
}

.sky-radar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.28) 36deg, transparent 72deg);
    animation: radar-sweep 8s linear infinite;
}

@keyframes radar-sweep {
    to { transform: rotate(360deg); }
}

.sky-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    background: linear-gradient(to top, rgba(0, 43, 77, 0.45), transparent);
    border-top: none;
}

/* flights with contrails — enter from left / right / top / bottom */
.flight {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    will-change: transform, opacity;
    pointer-events: none;
}

.contrail {
    display: block;
    height: 2px;
    width: 72px;
    margin-right: -4px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.85));
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
    transform-origin: right center;
}

.jet-icon {
    display: flex;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 61, 110, 0.35));
}

.jet-icon svg { width: 100%; height: 100%; display: block; }

/* ---- LEFT → right ---- */
.flight-a,
.flight-e {
    flex-direction: row;
}
.flight-a .jet-icon,
.flight-e .jet-icon {
    transform: rotate(90deg); /* nose right */
}

.flight-a {
    top: 32%;
    left: -8%;
    --size: 28px;
    animation: fly-from-left 14s linear infinite;
}
.flight-a .jet-icon { width: var(--size); height: var(--size); }
.flight-a .contrail { width: 72px; }

.flight-e {
    top: 62%;
    left: -10%;
    --size: 20px;
    animation: fly-from-left 16s linear infinite 5s;
    opacity: 0.88;
}
.flight-e .jet-icon { width: var(--size); height: var(--size); color: rgba(255, 255, 255, 0.92); }
.flight-e .contrail { width: 56px; opacity: 0.8; }

/* ---- RIGHT → left ---- */
.flight-b,
.flight-f {
    flex-direction: row-reverse;
}
.flight-b .jet-icon,
.flight-f .jet-icon {
    transform: rotate(-90deg); /* nose left */
}
.flight-b .contrail,
.flight-f .contrail {
    margin-right: 0;
    margin-left: -4px;
    transform-origin: left center;
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.85));
}

.flight-b {
    top: 48%;
    right: -8%;
    left: auto;
    --size: 22px;
    animation: fly-from-right 15s linear infinite 2.5s;
    opacity: 0.9;
}
.flight-b .jet-icon { width: var(--size); height: var(--size); color: rgba(255, 255, 255, 0.9); }
.flight-b .contrail { width: 56px; opacity: 0.75; }

.flight-f {
    top: 22%;
    right: -10%;
    left: auto;
    --size: 26px;
    animation: fly-from-right 17s linear infinite 8s;
}
.flight-f .jet-icon { width: var(--size); height: var(--size); }
.flight-f .contrail { width: 68px; }

/* ---- TOP → bottom ---- */
.flight-c {
    top: -6%;
    left: 42%;
    flex-direction: column;
    align-items: center;
    --size: 24px;
    animation: fly-from-top 13s linear infinite 4s;
}
.flight-c .jet-icon {
    width: var(--size);
    height: var(--size);
    transform: rotate(180deg); /* nose down */
}
.flight-c .contrail {
    width: 2px;
    height: 64px;
    margin: 0 0 -4px;
    transform-origin: bottom center;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.85));
}

/* ---- BOTTOM → top ---- */
.flight-d {
    bottom: -6%;
    top: auto;
    left: 28%;
    flex-direction: column-reverse;
    align-items: center;
    --size: 28px;
    animation: fly-from-bottom 12s linear infinite 6.5s;
}
.flight-d .jet-icon {
    width: var(--size);
    height: var(--size);
    transform: rotate(0deg); /* nose up */
}
.flight-d .contrail {
    width: 2px;
    height: 72px;
    margin: -4px 0 0;
    transform-origin: top center;
    background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.85));
    animation: contrail-pulse 2.4s ease-in-out infinite;
}

.flight--takeoff .contrail {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

@keyframes fly-from-left {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(520px, 0, 0); opacity: 0; }
}

@keyframes fly-from-right {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(-520px, 0, 0); opacity: 0; }
}

@keyframes fly-from-top {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(0, 520px, 0); opacity: 0; }
}

@keyframes fly-from-bottom {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(0, -520px, 0); opacity: 0; }
}

/* keep old names as aliases so media queries / reduced-motion stay safe */
@keyframes fly-a {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(520px, 0, 0); opacity: 0; }
}
@keyframes fly-b {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: 0.9; }
    88%  { opacity: 0.9; }
    100% { transform: translate3d(-520px, 0, 0); opacity: 0; }
}
@keyframes fly-c {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    9%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translate3d(0, 520px, 0); opacity: 0; }
}
@keyframes takeoff-d {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translate3d(0, -520px, 0); opacity: 0; }
}
@keyframes takeoff-e {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 0.9; }
    100% { transform: translate3d(520px, 0, 0); opacity: 0; }
}
@keyframes takeoff-f {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translate3d(-520px, 0, 0); opacity: 0; }
}

@keyframes contrail-pulse {
    0%, 100% { opacity: 0.55; transform: scaleX(0.92); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

/* ---------- Right form panel (Instant Sync — clean white) ---------- */

.form-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    padding: 48px 32px 40px;
    background: #FFFFFF;
    overflow: hidden;
}

.form-eyebrow {
    position: absolute;
    top: 28px;
    right: 36px;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #004D85;
}

.form-sky,
.form-glow,
.form-shapes,
.flight-r1,
.flight-r2 {
    display: none;
}

/* ---------- Sign-in card ---------- */

.signin-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    animation: card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
    overflow: visible;
}

.signin-card::before,
.signin-card::after,
.card-accent {
    display: none;
}

.signin-card > * {
    position: relative;
    z-index: 1;
}

/* right-panel decorative flights unused (planes stay on brand panel) */

@keyframes fly-r1 {
    0%   { transform: translate(0, 0) rotate(160deg); opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate(-115vw, 30vh) rotate(160deg); opacity: 0; }
}

@keyframes fly-r2 {
    0%   { transform: translate(0, 0) rotate(-155deg); opacity: 0; }
    12%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate(-110vw, -24vh) rotate(-155deg); opacity: 0; }
}

@keyframes accent-shine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #0F172A;
}

.card-sub {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-500);
    margin-bottom: 28px;
}

.login-error {
    background: #FDF0F0;
    border: 1px solid rgba(214, 69, 69, 0.35);
    border-left: 3px solid var(--red-500);
    color: var(--red-500);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #334155;
    margin-bottom: 8px;
}

.field-wrap {
    position: relative;
    margin-bottom: 18px;
}

.field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    transition: color 0.15s;
}

.field-icon svg { width: 16px; height: 16px; }

.field-wrap input[type="text"],
.field-wrap input[type="password"],
.field-wrap input[type="email"] {
    width: 100%;
    height: 48px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-900);
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 44px 0 42px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field-wrap input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.field-wrap input:hover { border-color: #94A3B8; }

.field-wrap input:focus {
    background: #fff;
    border-color: #004D85;
    box-shadow: 0 0 0 3px rgba(0, 77, 133, 0.15);
}

.field-wrap:focus-within .field-icon { color: #004D85; }

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.pw-toggle:hover { color: var(--text-500); background: var(--blue-50); }
.pw-toggle.is-visible { color: #004D85; }
.pw-toggle svg { width: 17px; height: 17px; }

.login-decoy {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.login-secret {
    -webkit-text-security: disc;
    text-security: disc;
}

.login-secret.is-revealed {
    -webkit-text-security: none;
    text-security: none;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 36px;
    flex-wrap: wrap;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.remember-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #004D85;
    cursor: pointer;
}

.forgot-link,
.forgot-row a {
    font-size: 13px;
    font-weight: 600;
    color: #004D85;
    text-decoration: none;
    transition: color 0.15s;
}

.forgot-link:hover,
.forgot-row a:hover {
    color: #003A66;
    text-decoration: underline;
}

.forgot-row {
    text-align: right;
    margin: -4px 0 20px;
}

.btn-signin {
    position: relative;
    width: 100%;
    height: 48px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #004D85;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none;
    transition: background 0.15s;
}

.btn-signin::after { display: none; }

.btn-signin:hover {
    filter: none;
    background: #003A66;
    box-shadow: none;
}
.btn-signin:hover::after { transform: none; }
.btn-signin:active { transform: none; background: #002B4D; }

.btn-signin:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 133, 0.15);
}

.card-help {
    text-align: center;
    font-size: 12px;
    color: var(--text-500);
    margin-top: 24px;
}

.login-secure {
    margin-top: 44px;
    text-align: center;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FEF2F2;
    border: 1px solid rgba(214, 69, 69, 0.35);
    color: #B91C1C;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.secure-badge svg {
    flex-shrink: 0;
}

.login-secure p {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #94A3B8;
}

/* ---------- Auth flow extras ---------- */

.field-error {
    display: block;
    color: var(--red-500);
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.field-wrap.has-error input { border-color: var(--red-500); }
.field-wrap.has-error input:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15); }

.field-help {
    font-size: 11.5px;
    line-height: 1.5;
    color: #94A3B8;
    margin: -10px 0 18px;
}

.field-help ul { margin: 4px 0 0; padding-left: 18px; }

.login-success {
    background: #ECFDF5;
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-left: 3px solid var(--green-500);
    color: var(--green-500);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

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

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-icon svg { width: 28px; height: 28px; }
.auth-icon.is-success { background: #ECFDF5; color: var(--green-500); }
.auth-icon.is-info { background: var(--blue-50); color: var(--brand-navy); }
.auth-icon.is-error { background: #FDF0F0; color: var(--red-500); }

.auth-msg {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-500);
    margin-bottom: 26px;
}

a.btn-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-back { text-align: center; margin-top: 18px; }

.auth-back a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
    transition: color 0.15s;
}

.auth-back a:hover { color: var(--primary-700); text-decoration: underline; }

/* ---------- Responsive ---------- */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 1200px) {
    .login-split {
        max-width: 1000px;
        min-height: 600px;
        height: min(680px, calc(100vh - 48px));
    }

    .brand-panel { padding: 36px 32px 40px; }
    .form-panel { padding: 40px 28px 36px; }
}

@media (max-width: 1024px) {
    body.login-page { padding: 20px 16px; }

    .login-split {
        max-width: 920px;
        min-height: 560px;
        height: min(640px, calc(100vh - 40px));
        border-radius: 18px;
    }

    .brand-panel {
        flex: 0 0 44%;
        width: 44%;
        padding: 32px 28px 36px;
    }

    .brand-lockup { max-width: 200px; }
    .brand-lockup .brand-logo-img { max-width: 180px; }
    .card-title { font-size: 24px; }
}

/* Stack: tablet & below */
@media (max-width: 900px) {
    body.login-page {
        padding: 16px 12px;
        padding:
            max(16px, env(safe-area-inset-top))
            max(12px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(12px, env(safe-area-inset-left));
        align-items: center;
        justify-content: center;
        min-height: 100dvh;
    }

    .page-ring {
        width: min(560px, 85vw);
        opacity: 0.07;
    }

    .page-ring-l { left: -28%; top: -12%; }
    .page-ring-r { right: -30%; bottom: -14%; }

    .login-split {
        flex-direction: column;
        width: 100%;
        max-width: 560px;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 16px;
        margin: auto;
    }

    .brand-panel {
        width: 100%;
        flex: none;
        min-width: 0;
        min-height: 240px;
        padding: 28px 24px 32px;
        gap: 28px;
    }

    .brand-copy {
        margin-top: 0;
        max-width: none;
    }

    .brand-lockup { max-width: 160px; }
    .brand-lockup .brand-logo-img { max-width: 150px; }

    .brand-headline {
        margin-bottom: 12px;
    }

    .brand-sub {
        font-size: 14px;
        max-width: none;
    }

    .brand-orbits {
        width: 58%;
        height: 90%;
        top: -10%;
        right: -8%;
    }

    .brand-ring {
        width: 70%;
        max-width: 280px;
        bottom: -20%;
        right: -6%;
    }

    .sky-shapes {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sky-radar { display: none; }

    .flight-a { --size: 22px; top: 30%; left: -8%; }
    .flight-b { --size: 18px; top: 50%; right: -8%; left: auto; }
    .flight-c { --size: 20px; top: -6%; left: 45%; }
    .flight-d { --size: 22px; bottom: -6%; top: auto; left: 25%; }
    .flight-e { --size: 16px; top: 68%; left: -10%; }
    .flight-f { --size: 18px; top: 18%; right: -10%; left: auto; }

    @keyframes fly-from-left {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        85%  { opacity: 1; }
        100% { transform: translate3d(100vw, 0, 0); opacity: 0; }
    }
    @keyframes fly-from-right {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        85%  { opacity: 1; }
        100% { transform: translate3d(-100vw, 0, 0); opacity: 0; }
    }
    @keyframes fly-from-top {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        85%  { opacity: 1; }
        100% { transform: translate3d(0, 90vh, 0); opacity: 0; }
    }
    @keyframes fly-from-bottom {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        85%  { opacity: 1; }
        100% { transform: translate3d(0, -90vh, 0); opacity: 0; }
    }
    @keyframes fly-a {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        85%  { opacity: 1; }
        100% { transform: translate3d(100vw, 0, 0); opacity: 0; }
    }
    @keyframes fly-b {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        10%  { opacity: 0.9; }
        88%  { opacity: 0.9; }
        100% { transform: translate3d(-100vw, 0, 0); opacity: 0; }
    }
    @keyframes fly-c {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        9%   { opacity: 1; }
        88%  { opacity: 1; }
        100% { transform: translate3d(0, 90vh, 0); opacity: 0; }
    }
    @keyframes takeoff-d {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        100% { transform: translate3d(0, -90vh, 0); opacity: 0; }
    }
    @keyframes takeoff-e {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 0.9; }
        100% { transform: translate3d(100vw, 0, 0); opacity: 0; }
    }
    @keyframes takeoff-f {
        0%   { transform: translate3d(0, 0, 0); opacity: 0; }
        8%   { opacity: 1; }
        100% { transform: translate3d(-100vw, 0, 0); opacity: 0; }
    }

    .form-panel {
        min-height: auto;
        padding: 48px 24px 40px;
        align-items: stretch;
    }

    .form-eyebrow {
        position: static;
        text-align: right;
        margin: 0 0 20px;
        font-size: 10px;
    }

    .signin-card {
        max-width: none;
        width: 100%;
    }

    .card-title { font-size: 24px; }
    .card-sub { font-size: 13.5px; }

    .field-wrap input[type="text"],
    .field-wrap input[type="password"],
    .field-wrap input[type="email"] {
        font-size: 16px; /* prevent iOS zoom */
        height: 48px;
    }
}

/* Phones */
@media (max-width: 600px) {
    body.login-page {
        padding: 12px 10px;
        padding:
            max(12px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(12px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
    }

    .page-glow-tl,
    .page-glow-br {
        width: 280px;
        height: 280px;
    }

    .login-split {
        max-width: none;
        border-radius: 14px;
    }

    .brand-panel {
        min-height: 200px;
        padding: 22px 18px 26px;
        gap: 20px;
    }

    .brand-lockup { max-width: 132px; }
    .brand-lockup .brand-logo-img { max-width: 124px; }

    .brand-headline {
        line-height: 1.1;
    }

    .brand-sub {
        font-size: 13px;
        line-height: 1.45;
    }

    .flight { display: none; }

    .form-panel {
        padding: 36px 18px 32px;
    }

    .form-eyebrow {
        margin-bottom: 14px;
        letter-spacing: 0.1em;
    }

    .card-title { font-size: 22px; }
    .card-sub { margin-bottom: 20px; }

    .form-options {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 32px;
    }

    .btn-signin {
        min-height: 48px;
        font-size: 14px;
        padding: 12px 16px;
    }

    .login-secure {
        margin-top: 40px;
    }

    .login-secure p {
        font-size: 11px;
        line-height: 1.45;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .brand-panel {
        min-height: 180px;
        padding: 18px 14px 22px;
    }

    .brand-headline { font-size: 18px; }
    .brand-sub { display: none; }

    .form-panel { padding: 28px 14px 24px; }
    .card-title { font-size: 20px; }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Short viewports (landscape phones / short laptops) */
@media (max-height: 720px) and (min-width: 901px) {
    body.login-page { padding: 16px; }

    .login-split {
        min-height: 0;
        height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }

    .brand-panel { padding: 28px 28px 32px; }
    .form-panel { padding: 28px 24px 28px; }
    .brand-headline { margin-bottom: 12px; }
    .card-title { font-size: 22px; }
}

@media (max-height: 560px) and (max-width: 900px) {
    .brand-panel {
        min-height: 160px;
        padding: 16px 18px 18px;
    }

    .brand-sub { display: none; }
    .flight { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .flight,
    .page-flight,
    .page-orbit,
    .sky-aurora,
    .sky-stars,
    .sky-radar::before,
    .sync-dot,
    .form-glow,
    .reveal,
    .signin-card,
    .card-accent,
    .brand-orbits,
    .form-ring,
    .form-blob {
        animation: none !important;
    }
    .reveal { opacity: 1; transform: none; }
    .signin-card { opacity: 1; transform: none; }
    .flight { opacity: 0.45; }
    .page-flight { opacity: 0.35; }
    .flight-a { left: 8%; top: 32%; right: auto; }
    .flight-b { right: 8%; top: 48%; left: auto; }
    .flight-c { left: 42%; top: 12%; }
    .flight-d { left: 28%; bottom: 12%; top: auto; }
    .flight-e { left: 10%; top: 62%; right: auto; }
    .flight-f { right: 10%; top: 22%; left: auto; }
}
