/* ── Login experience — premium luxury travel theme ────────────────────────
   Reusable styling for the staff sign-in page. Brand tokens mirror
   assets/css/style.css (Aggressor navy + gold). Presentational only. */

:root {
    --navy:       #0c2340;
    --navy-deep:  #061629;
    --gold:       #c49a2a;
    --gold-soft:  #e3c163;
    --gold-dk:    #ae8622;
    --text:       #f4f7fb;
    --muted:      rgba(244, 247, 251, .60);
    --faint:      rgba(244, 247, 251, .40);
    --radius:     14px;
    --radius-lg:  26px;
    --field-bg:   rgba(255, 255, 255, .06);
    --field-bd:   rgba(255, 255, 255, .16);
    --glass-bg:   rgba(12, 35, 64, .46);
    --glass-bd:   rgba(255, 255, 255, .14);
    --ease:       cubic-bezier(.2, .7, .2, 1);
}

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

html, body { height: 100%; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.56;
    background: var(--navy-deep);
}

/* Full-bleed hero + deepened navy overlay on its own layer so it can fade in
   independently of the card. Heavier overlay makes the card the focal point
   while preserving the yacht's detail. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(4, 16, 31, .94) 0%, rgba(8, 26, 48, .86) 45%, rgba(6, 22, 41, .74) 100%),
        url('/images/cayman-hero.jpg') center / cover no-repeat;
    animation: bgFade 600ms ease-out both;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}

/* ── Glassmorphism card ────────────────────────────────────────────────── */
.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(2, 9, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.85rem, 4vw, 2.6rem);
    animation: cardIn 420ms var(--ease) both;
}

/* ── Brand block (logo → eyebrow → app name → sign-in label) ───────────── */
.login-brand { text-align: center; margin-bottom: 1.4rem; }
.login-logo {
    width: 64px; height: 64px;
    margin: 0 auto .6rem; display: block;
    /* Subtle gold glow + soft depth shadow. */
    filter: drop-shadow(0 0 7px rgba(196, 154, 42, .28)) drop-shadow(0 4px 8px rgba(2, 9, 20, .45));
}
.login-brand .mark {
    display: block; font-size: .67rem; font-weight: 700;
    letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft);
    margin-bottom: .4rem;
}
.login-brand h1 {
    font-size: clamp(1.4rem, 3.6vw, 1.7rem); font-weight: 700;
    letter-spacing: -.015em; color: #fff; line-height: 1.2; white-space: nowrap;
}
.login-brand .signin-label {
    font-size: .82rem; color: var(--muted); margin-top: .35rem; letter-spacing: .01em;
}

/* ── Fields (with leading icon) ────────────────────────────────────────── */
.field { margin-bottom: .85rem; }
.field label {
    display: block; font-size: .72rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: .38rem;
}
.field-control { position: relative; }
.field-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--faint); pointer-events: none;
    display: flex; transition: color .15s var(--ease);
}
.field-control input {
    width: 100%; padding: .82rem 1rem .82rem 2.85rem; font-size: .95rem; color: var(--text);
    background: var(--field-bg); border: 1px solid var(--field-bd);
    border-radius: var(--radius);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease),
                background .15s var(--ease), transform .15s var(--ease);
}
.field-control input::placeholder { color: var(--faint); }
.field-control input:hover { background: rgba(255, 255, 255, .09); }
.field-control input:focus-visible {
    outline: none; border-color: var(--gold);
    background: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(196, 154, 42, .30), 0 8px 18px rgba(2, 9, 20, .35);
}
.field-control input:focus-visible ~ .field-icon { color: var(--gold-soft); }

/* ── Row: remember / forgot ────────────────────────────────────────────── */
.field-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.05rem; font-size: .81rem; flex-wrap: wrap;
}
.remember { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); cursor: pointer; line-height: 1; }
.remember input { accent-color: var(--gold); width: 1rem; height: 1rem; margin: 0; flex: none; }
.forgot { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s var(--ease); }
.forgot:hover, .forgot:focus-visible { color: var(--gold-soft); }

/* ── Sign-in button ────────────────────────────────────────────────────── */
.btn-signin {
    width: 100%; padding: .98rem 1rem; font-size: 1rem; font-weight: 700;
    letter-spacing: .02em; color: var(--navy-deep); cursor: pointer;
    border: none; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-dk) 100%);
    box-shadow: 0 6px 18px rgba(196, 154, 42, .32);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn-signin:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 12px 26px rgba(196, 154, 42, .42); }
.btn-signin:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(196, 154, 42, .3); }
.btn-signin:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 2px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.login-foot {
    text-align: center; font-size: .68rem; color: var(--faint);
    margin-top: 1.1rem; letter-spacing: .02em;
}

/* ── Motion ────────────────────────────────────────────────────────────── */
@keyframes bgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Accessibility ─────────────────────────────────────────────────────── */
:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .field-control input:focus-visible, .btn-signin:hover, .btn-signin:active { transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-card { border-radius: var(--radius-lg); }
}

/* ── Alerts (login/password forms) ─────────────────────────────────────── */
.alert { margin: 0 0 1.1rem; padding: .7rem .9rem; border-radius: 10px; font-size: .88rem; line-height: 1.45; }
.alert-status { background: rgba(46, 160, 92, .14); border: 1px solid rgba(46, 160, 92, .45); color: #d9f5e4; }
.alert-error { background: rgba(214, 69, 69, .16); border: 1px solid rgba(214, 69, 69, .5); color: #ffd9d9; }
