/* ---------------------------------------------------------------------------
   Sign-in page.

   Split layout: a brand panel that says what the system is, and a form panel.
   Below 860px the brand panel is hidden and the form centres, so the page stays
   usable on a phone without the decoration getting in the way.
   --------------------------------------------------------------------------- */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    background: #fff;
}

/* ----- brand panel ------------------------------------------------------- */

.login-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #e8eef7;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(47, 127, 209, 0.45), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(47, 127, 209, 0.28), transparent 55%),
        linear-gradient(155deg, #1f3a5f 0%, #16293f 100%);
    overflow: hidden;
}

/* Subtle depth without an image asset. */
.login-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(70% 60% at 30% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.login-feature-inner { position: relative; z-index: 1; max-width: 30rem; }

.login-logo {
    width: 62px;
    height: 62px;
    margin-bottom: 1.75rem;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.login-feature h1 {
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.65rem;
}

.login-feature .lede {
    font-size: 1rem;
    line-height: 1.55;
    color: #a9bfda;
    margin-bottom: 2.25rem;
}



/* Tick mark drawn in CSS - no icon font, nothing to load. */


.login-footnote {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    color: #7a92b0;
    letter-spacing: 0.03em;
}

/* ----- form panel -------------------------------------------------------- */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #fbfcfe;
}

.login-form { width: 100%; max-width: 21rem; }

.login-logo-compact { width: 46px; height: 46px; margin-bottom: 1.25rem; display: none; }

.login-form h2 {
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0 0 0.3rem;
    color: #16293f;
}

.login-sub { color: #6b7683; font-size: 0.9rem; margin-bottom: 1.75rem; }

.field { margin-bottom: 1.1rem; }

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #45525f;
    margin-bottom: 0.35rem;
}

.field input {
    width: 100%;
    padding: 0.62rem 0.8rem;
    font-size: 0.95rem;
    color: #1c2733;
    background: #fff;
    border: 1px solid #d3dae3;
    border-radius: 0.4rem;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field input:hover { border-color: #b9c4d1; }

.field input:focus {
    outline: none;
    border-color: var(--brand-accent, #2f7fd1);
    box-shadow: 0 0 0 3px rgba(47, 127, 209, 0.16);
}

.login-submit {
    width: 100%;
    padding: 0.68rem 1rem;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #2f7fd1 0%, #2569b0 100%);
    border: 1px solid #2569b0;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.06s ease, box-shadow 0.12s ease;
}

.login-submit:hover { filter: brightness(1.07); box-shadow: 0 4px 14px rgba(37, 105, 176, 0.3); }
.login-submit:active { transform: translateY(1px); }

.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 127, 209, 0.35);
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    margin-bottom: 1.25rem;
    font-size: 0.86rem;
    color: #8c1d13;
    background: #fdecea;
    border: 1px solid #f5c2bd;
    border-radius: 0.4rem;
}

.login-error svg { flex: 0 0 auto; margin-top: 0.1rem; }

.login-help {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e6eaef;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #8894a2;
}

/* ----- narrow screens ---------------------------------------------------- */

@media (max-width: 860px) {
    .login-page { grid-template-columns: 1fr; }
    .login-feature { display: none; }
    .login-panel { background: #fff; }
    .login-logo-compact { display: block; }
}
