/* ==========================================================================
   MU CAMPUS SCHEDULER — Login
   Palette: midnight navy #0B1530 · deep royal #16234A · brass gold #D4A928
            ember maroon #9A2F2F · parchment #F6F2E8 · ink #14213D
   Type:    Fraunces (display) · IBM Plex Sans (ui/body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --navy-950: #0b1530;
    --navy-800: #16234a;
    --navy-700: #223564;
    --ink: #14213d;
    --ink-soft: #2c3f66;

    --gold: #d4a928;
    --gold-deep: #a9791c;
    --gold-pale: #f2dd9c;

    --maroon: #9a2f2f;
    --maroon-deep: #7a2222;

    --parchment: #f6f2e8;
    --page-bg: #ece6d6;
    --card-bg: #ffffff;
    --slate: #55606e;
    --hairline: #e2dcc9;

    --font-display: 'Fraunces', 'Iowan Old Style', serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------- */
/* Page shell                                                              */
/* ---------------------------------------------------------------------- */

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 42%) 1fr;
}

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

.brand-panel {
    position: relative;
    background:
        radial-gradient(60% 55% at 78% 12%, rgba(212, 169, 40, 0.35), transparent 65%),
        linear-gradient(165deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: var(--parchment);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.25rem 3.25rem 2.25rem;
    overflow: hidden;
    box-shadow: inset -1px 0 0 rgba(212, 169, 40, 0.25);
}

/* Signature element: a faint timetable grid — rows and columns like a
   weekly class schedule — printed into the dark panel, lit by a warm
   gold glow in one corner. It's the one visual flourish on the page. */
.brand-panel__pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            to right,
            rgba(246, 242, 232, 0.07) 0,
            rgba(246, 242, 232, 0.07) 1px,
            transparent 1px,
            transparent 14.2857%
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(246, 242, 232, 0.07) 0,
            rgba(246, 242, 232, 0.07) 1px,
            transparent 1px,
            transparent 12.5%
        );
    mask-image: radial-gradient(ellipse 95% 75% at 35% 25%, black 35%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse 95% 75% at 35% 25%, black 35%, transparent 88%);
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--navy-950);
    background: linear-gradient(155deg, var(--gold-pale), var(--gold) 70%);
    box-shadow: 0 6px 18px rgba(212, 169, 40, 0.35);
    margin-bottom: 2.25rem;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.35rem, 4vw, 3.4rem);
    line-height: 1.06;
    margin: 0 0 1.15rem;
    letter-spacing: -0.01em;
}

.brand-title em {
    font-style: normal;
    color: var(--gold-pale);
}

.brand-tagline {
    max-width: 27ch;
    margin: 0;
    color: rgba(246, 242, 232, 0.72);
    font-size: 1rem;
    line-height: 1.65;
}

.brand-panel__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: rgba(246, 242, 232, 0.55);
    border-top: 1px solid rgba(246, 242, 232, 0.16);
    padding-top: 1.15rem;
}

.brand-panel__footer::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 169, 40, 0.25);
    flex-shrink: 0;
}

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

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(154, 47, 47, 0.05), transparent 45%),
        var(--page-bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.75rem 2.5rem 2.25rem;
    box-shadow:
        0 1px 2px rgba(20, 33, 61, 0.06),
        0 20px 45px -12px rgba(20, 33, 61, 0.22);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon) 0%, var(--gold) 55%, var(--navy-700) 100%);
}

.login-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.login-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.1rem;
    margin: 0 0 0.6rem;
    color: var(--navy-950);
}

.login-subtext {
    margin: 0 0 2.25rem;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Fields */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.field input[type="number"],
.field input[type="password"],
.field input[type="text"] {
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink);
    background: var(--parchment);
    border: 1.5px solid var(--hairline);
    border-radius: 8px;
    padding: 0.8rem 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
    color: #9aa0a6;
}

.field input:hover {
    border-color: #cfc7ac;
}

.field input:focus-visible {
    background: #fffdf7;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 169, 40, 0.22);
}

/* remove number spinners for a cleaner enrollment field */
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.field--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: -0.3rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--slate);
    cursor: pointer;
}

.checkbox input {
    accent-color: var(--gold-deep);
    width: 16px;
    height: 16px;
}

.forgot-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--maroon-deep);
    text-decoration: underline;
}

/* Submit — the one bold, high-contrast pop on the page */

.login-submit {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--navy-950);
    background: linear-gradient(155deg, var(--gold-pale) 0%, var(--gold) 60%, var(--gold-deep) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(169, 121, 28, 0.55);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 14px 28px -8px rgba(169, 121, 28, 0.6);
    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(1px);
    box-shadow: 0 6px 14px -6px rgba(169, 121, 28, 0.5);
}

.login-submit:focus-visible {
    outline: 2px solid var(--navy-950);
    outline-offset: 3px;
}

.login-help {
    margin: 1.85rem 0 0;
    font-size: 0.85rem;
    color: var(--slate);
    text-align: center;
}

.login-help a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
}

.login-help a:hover {
    color: var(--maroon-deep);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
    .page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        padding: 2.25rem 1.75rem;
        min-height: 240px;
    }

    .brand-panel__footer {
        display: none;
    }

    .brand-tagline {
        max-width: none;
    }

    .form-panel {
        padding: 2rem 1.25rem 3rem;
    }

    .login-card {
        padding: 2.25rem 1.6rem 2rem;
    }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                          */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
/* Login error message */
.login-form .form-error {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: -0.2rem 0 0;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--maroon-deep);
    background: rgba(154, 47, 47, 0.09);
    border: 1px solid rgba(154, 47, 47, 0.25);
    border-left: 4px solid var(--maroon);
    border-radius: 8px;
}

/* small "!" badge before the text */
.login-form .form-error::before {
    content: "!";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}