/* ============================================================
   Sign-in pages (Login, ForgotPassword, ResetPassword): they have no layout,
   so they don't load snowbird.css. Styled like the marketing website's demo
   section (Website/styles.css): the dark #141a26 band with a blue glow, the
   website's tick list, and a white form card with brand-blue controls.
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e2432;
    min-height: 100vh;
    background: #141a26;
    -webkit-font-smoothing: antialiased;
}

/* Login: copy on the left, card in the middle; the page itself never scrolls */
body.auth-login {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;   /* short phones can still scroll to the card */
}

/* Forgot / reset password: just the card, centred */
body.auth-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* ── Background: the warehouse photo under the website's dark band and blue glow ── */
.bg-layer {
    position: fixed;
    inset: 0;
    background: url('/images/login-bg.png') center/cover no-repeat;
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(66, 153, 225, .30) 0%, rgba(66, 153, 225, 0) 60%),
        linear-gradient(135deg, rgba(20, 26, 38, .94) 0%, rgba(20, 26, 38, .82) 50%, rgba(20, 26, 38, .62) 100%);
    z-index: 1;
}

/* ── Top bar ── */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .brand img {
        height: 32px;
        width: auto;
        filter: brightness(0) invert(1);
    }

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.top-badge {
    font-size: 11px;
    font-weight: 700;
    color: #a9b4c7;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Main layout ── */
.page-body {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 7vw, 120px);
    padding: 80px 6vw;
}

/* ── Left copy block: the website's eyebrow, headline, lede and ticks.
   It sits beside the card (not over it) and gives way first when space runs out. ── */
.copy-block {
    flex: 0 1 480px;
    min-width: 0;
    color: #fff;
    animation: fadeUp 0.7s ease both;
}

    .copy-block .eyebrow {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #7cb8ee;
        margin-bottom: 16px;
    }

    .copy-block h1 {
        font-size: clamp(28px, 3.5vw, 44px);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 16px;
        text-wrap: balance;
    }

    .copy-block p {
        font-size: 16px;
        color: #a9b4c7;
        line-height: 1.6;
    }

.copy-features {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.copy-feature {
    position: relative;
    padding-left: 30px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #d5dce8;
}

    /* The website's tick: a brand-blue disc with a white check */
    .copy-feature::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.05em;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #3677af url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
    }

/* ── Card ── */
.login-panel {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    animation: fadeUp 0.6s ease 0.1s both;
}

.login-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}

    .login-card h2 {
        font-size: 24px;
        font-weight: 800;
        color: #1e2432;
        margin-bottom: 4px;
        letter-spacing: -0.02em;
    }

    .login-card .subtitle {
        font-size: 14px;
        color: #5d6779;
        margin-bottom: 26px;
    }

.auth-icon {
    font-size: 42px;
    color: #3677af;
}

/* ── Form: the website's inputs (#cdd5e0 border, 9px corners, bright-blue focus ring) ── */
.form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #3b4456;
    margin-bottom: 6px;
}

.input-group {
    border-radius: 9px;
    transition: box-shadow 0.15s;
}

    .input-group:focus-within {
        box-shadow: 0 0 0 3px rgba(66, 153, 225, .25);
    }

.input-group-text {
    background: #fff;
    border-color: #cdd5e0;
    color: #8a94a6;
    border-radius: 9px 0 0 9px;
}

.form-control {
    border-color: #cdd5e0;
    font-size: 14px;
    padding: 10px 12px;
    color: #1e2432;
    background: #fff;
    border-radius: 9px;
    transition: border-color 0.15s;
}

    .form-control:focus {
        border-color: #4299e1;
        box-shadow: none;
        background: #fff;
    }

    .form-control::placeholder {
        color: #a3adbd;
    }

.input-group:focus-within .input-group-text,
.input-group:focus-within .pw-toggle {
    border-color: #4299e1;
}

/* Show / hide password, at the right-hand end of the field */
.pw-toggle {
    border: 1px solid #cdd5e0;
    background: #fff;
    color: #5d6779;
    border-radius: 0 9px 9px 0;
}

    .pw-toggle:hover,
    .pw-toggle:focus {
        background: #f5f8fc;
        color: #1e2432;
        border-color: #cdd5e0;
    }

/* ── Primary button: flat brand blue, as on the website ── */
.btn-signin {
    background: #3677af;
    border: 2px solid #3677af;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    color: #fff;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

    .btn-signin:hover,
    .btn-signin:focus-visible {
        background: #2c6698;
        border-color: #2c6698;
        color: #fff;
    }

    .btn-signin:focus-visible {
        outline: 3px solid rgba(66, 153, 225, .45);
        outline-offset: 2px;
    }

    .btn-signin:active {
        transform: translateY(1px);
    }

.auth-link,
.back-link {
    font-size: 13px;
    color: #3677af;
    text-decoration: none;
    font-weight: 600;
}

    .auth-link:hover,
    .back-link:hover {
        color: #2c6698;
        text-decoration: underline;
    }

/* Messages: the website's chip tints */
.alert {
    border-radius: 10px;
    border: 1px solid;
}

.alert-danger {
    background: #fde8e8;
    border-color: #f7c5c5;
    color: #8f1d14;
}

.alert-success {
    background: #e3f5ec;
    border-color: #b7e3cc;
    color: #0f5c39;
}

/* ── Footer ── */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 12px;
    color: rgba(169, 180, 199, .7);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .copy-block, .login-panel { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .copy-block {
        display: none;
    }

    .page-body {
        justify-content: center;
        padding: 80px 24px;
    }
}

@media (max-width: 480px) {
    .top-bar { padding: 16px 20px; }
    .top-badge { display: none; }
    .page-body { padding: 72px 16px; }
    .login-card { padding: 26px 20px; }
    .page-footer { padding: 14px 20px; }
}
