/* FrostyFlow — Login screen
   Brand/visual styles only. Auth flow, CSRF and validation stay in login.php. */

:root {
    --ff-navy: #0B1D2A;
    --ff-navy-mid: #122E42;
    --ff-navy-light: #184465;
    --ff-ice: #8FE3FF;
    --ff-accent: #2F8FE0;
    --ff-text: #0B1D2A;
    --ff-muted: #5B6B76;
    --ff-faint: #8A99A3;
    --ff-border: #D7E2E8;
    --ff-bg: #F6F9FB;
}

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

body.ff-login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ff-text);
    background: var(--ff-bg);
    min-height: 100vh;
}

.ff-login-shell {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* ---------- Brand panel (left, desktop) ---------- */

.ff-brand-panel {
    flex: 1 1 480px;
    min-width: 420px;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--ff-navy) 0%, var(--ff-navy-mid) 55%, var(--ff-navy-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
}

.ff-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ff-glow--top {
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(143, 227, 255, 0.16) 0%, rgba(143, 227, 255, 0) 70%);
}

.ff-glow--bottom {
    bottom: -160px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(47, 143, 224, 0.18) 0%, rgba(47, 143, 224, 0) 70%);
}

.ff-brand-logo {
    position: relative;
    z-index: 1;
}

.ff-brand-logo img {
    height: 104px;
    width: auto;
    display: block;
}

.ff-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.ff-brand-copy h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1.22;
    color: var(--ff-bg);
    margin: 0 0 20px;
}

.ff-brand-copy p {
    font-size: 16px;
    line-height: 1.6;
    color: #AFC6D6;
    margin: 0;
}

.ff-brand-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
}

.ff-brand-stats strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--ff-bg);
}

.ff-brand-stats span {
    display: block;
    font-size: 13px;
    color: #87A2B5;
    margin-top: 2px;
}

.ff-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: #6F8BA0;
}

/* ---------- Form panel (right) ---------- */

.ff-form-panel {
    flex: 1 1 480px;
    min-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
}

.ff-form-wrap {
    width: 100%;
    max-width: 380px;
}

/* Compact mark shown only when the brand panel is hidden (narrow viewports) */
.ff-form-logo {
    display: none;
    justify-content: center;
    margin-bottom: 28px;
}

.ff-form-logo img {
    height: 64px;
    width: auto;
}

.ff-form-wrap h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 26px;
    margin: 0 0 8px;
}

.ff-form-wrap > p.ff-lead {
    font-size: 14px;
    color: var(--ff-muted);
    margin: 0 0 36px;
}

.ff-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.ff-field label {
    font-size: 13px;
    font-weight: 600;
    color: #263844;
}

.ff-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.ff-field-row a {
    font-size: 13px;
    font-weight: 500;
    color: var(--ff-accent);
    text-decoration: none;
}

.ff-field-row a:hover {
    text-decoration: underline;
}

.ff-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ff-input-wrap svg.ff-input-icon {
    position: absolute;
    left: 14px;
    pointer-events: none;
}

.ff-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ff-text);
    border: 1.5px solid var(--ff-border);
    border-radius: 10px;
    background: #FFFFFF;
}

.ff-input-wrap input:focus {
    outline: 2px solid var(--ff-accent);
    outline-offset: 1px;
}

.ff-input-wrap input.ff-has-toggle {
    padding-right: 42px;
}

.ff-toggle-visibility {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    color: #5B6B76;
}

.ff-toggle-visibility:focus-visible {
    outline: 2px solid var(--ff-accent);
}

.ff-toggle-visibility svg {
    display: block;
}

.ff-toggle-visibility .ff-icon-hide {
    display: none;
}

.ff-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ff-muted);
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.ff-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--ff-accent);
}

.ff-submit {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #FFFFFF;
    background: var(--ff-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.ff-submit:hover {
    background: #2680CC;
}

.ff-alert {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.ff-alert-error {
    background: #FDEDEC;
    color: #B3261E;
    border: 1px solid #F3C6C2;
}

.ff-alert-success {
    background: #EAF7EF;
    color: #1D7A4C;
    border: 1px solid #BFE6CC;
}

.ff-contact-note {
    margin-top: 28px;
    font-size: 13px;
    color: var(--ff-faint);
    text-align: center;
}

@media (max-width: 860px) {
    .ff-brand-panel {
        display: none;
    }

    .ff-form-panel {
        min-height: 100vh;
    }

    .ff-form-logo {
        display: flex;
    }
}
