/* ══════════════════════════════════════════════════════════════════════
   LOGIN PAGE — Frontier theme
   ─────────────────────────────────────────────────────────────────────
   Ivory page on a soft horizon gradient. Hairlined card plate with tiny
   corner registration marks. Logo is the recoloured Horizon mark on a
   subtle cream plate; "by Horizon" sits below in Instrument Serif italic.
   Inputs use the same ivory/hairline treatment as the rest of the app;
   Sign In is the amber primary.
   ══════════════════════════════════════════════════════════════════════ */

.fr-login-page {
    min-height: 100vh;
    background: var(--fr-bg);
    color: var(--fr-ink);
    font-family: var(--fr-font-sans);
    position: relative;
    overflow-x: hidden;
}

/* Warm radial glow rising from the bottom of the page — drives the
   brand metaphor (horizon → rising sun) without being literal. */
.fr-login-horizon {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% 105%,
            rgba(217, 119, 6, 0.12) 0%,
            rgba(217, 119, 6, 0.05) 30%,
            transparent 60%),
        linear-gradient(to bottom, transparent 60%, rgba(180, 83, 9, 0.025) 100%);
}

/* Faint paper grain across the whole page */
.fr-login-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(rgba(20, 24, 29, 0.02) 1px, transparent 1px);
    background-size: 3px 3px;
}

.fr-login-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 24px;
}

/* The card plate */
.fr-login-plate {
    width: min(420px, 100%);
    background: var(--fr-surface);
    border: 1px solid var(--fr-hairline);
    border-radius: var(--fr-r-lg);
    padding: 44px 40px 36px;
    box-shadow:
        0 1px 0 rgba(20, 24, 29, 0.02),
        0 12px 36px -8px rgba(20, 24, 29, 0.08),
        0 32px 72px -16px rgba(180, 83, 9, 0.10);
    position: relative;
}
/* Tiny printer's registration marks at the corners */
.fr-login-plate::before,
.fr-login-plate::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--fr-hairline-strong);
}
.fr-login-plate::before {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}
.fr-login-plate::after {
    bottom: 10px;
    right: 10px;
    border-left: 0;
    border-top: 0;
}

/* Logo block — the logo is a transparent PNG; the "plate" is a CSS frame
   around it. This lets the plate tone match the rest of the design system
   (white card → hairline border → light ivory inset) instead of relying on
   a baked-in background. */
.fr-login-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.fr-login-logo-frame {
    max-width: 340px;
    width: 100%;
    background: var(--fr-bg);                 /* same ivory as the page */
    border: 1px solid var(--fr-hairline-strong);
    border-radius: var(--fr-r-md);
    padding: 18px 26px;
    box-sizing: border-box;
}
.fr-login-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* "by Horizon" italic lede */
.fr-login-byline {
    text-align: center;
    font-family: var(--fr-font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--fr-ink-2);
    margin: 0 0 22px;
    letter-spacing: 0.005em;
}

/* Thin amber divider rule */
.fr-login-rule {
    width: 32px;
    height: 1px;
    background: var(--fr-accent);
    margin: 0 auto 28px;
    opacity: 0.6;
}

/* Error alert — quieter than Bootstrap default */
.fr-login-alert {
    font-size: 13.5px;
    border-radius: var(--fr-r-md);
}

/* Form fields */
.fr-login-field { margin-bottom: 18px; }
.fr-login-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fr-ink-3);
    margin-bottom: 8px;
    font-weight: 500;
}
.fr-login-input.form-control,
.fr-login-input {
    width: 100%;
    height: 44px;
    background-color: var(--fr-bg) !important;
    border: 1px solid var(--fr-hairline-strong) !important;
    border-radius: var(--fr-r-md) !important;
    padding: 0 14px !important;
    font-family: var(--fr-font-sans) !important;
    font-size: 15px !important;
    color: var(--fr-ink) !important;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
    box-shadow: none !important;
}
.fr-login-input::placeholder { color: var(--fr-ink-3) !important; }
.fr-login-input:hover { border-color: var(--fr-ink-3) !important; }
.fr-login-input:focus {
    outline: none !important;
    background-color: var(--fr-surface) !important;
    border-color: var(--fr-accent) !important;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12) !important;
}

/* Sign In button — amber primary, tracked uppercase */
.fr-login-submit.btn,
.fr-login-submit {
    --bs-btn-focus-shadow-rgb: 180, 83, 9;
    width: 100%;
    height: 46px;
    background-color: var(--fr-accent) !important;
    background-image: none !important;
    color: #FDF8EE !important;
    border: 1px solid var(--fr-accent) !important;
    border-radius: var(--fr-r-md) !important;
    font-family: var(--fr-font-sans) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    margin-top: 8px !important;
    transition: background-color 120ms ease, border-color 120ms ease;
    box-shadow: none !important;
}
.fr-login-submit:hover,
.fr-login-submit:focus,
.fr-login-submit:active {
    background-color: var(--fr-accent-strong) !important;
    background-image: none !important;
    border-color: var(--fr-accent-strong) !important;
    color: #FDF8EE !important;
}
.fr-login-submit:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.2) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   END LOGIN PAGE
   ══════════════════════════════════════════════════════════════════════ */


