/*
 * Exceedia brand tokens + auth-page styles.
 *
 * Brand spec lives in brandingguideline.pdf (Robyn Marie Designs). Fonts are
 * Jost (free Futura analogue) and Questrial (free Century Gothic analogue) —
 * swap --font-sans / --font-display below if licensed Futura / Century Gothic
 * ever land in static/fonts/.
 */

:root {
    --navy:        #0E1766;
    --lime:        #8AC820;
    --cool-gray:   #DFE4EC;
    --light-green: #B4D781;
    --ink:         #1a1f2e;
    --muted:       #5a6478;
    --line:        #e1e4ea;
    --white:       #ffffff;

    --font-sans:    "Jost", -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Questrial", "Century Gothic", "Jost", sans-serif;
}

/* ---------- auth page shell ---------- */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "showcase form"
        "footer   footer";
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cool-gray);
}

/* ---------- left: showcase ---------- */
.auth-showcase {
    grid-area: showcase;
    position: relative;
    background:
        radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.55), transparent 60%),
        linear-gradient(180deg, var(--light-green) 0%, #ffffff 100%);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth-showcase::before {
    content: "";
    position: absolute;
    top: -10%; left: -20%;
    width: 70%; height: 8px;
    background: var(--lime);
    transform: rotate(-47.44deg);
    transform-origin: left center;
    opacity: 0.35;
}
.auth-showcase::after {
    content: "";
    position: absolute;
    bottom: 18%; right: -15%;
    width: 60%; height: 6px;
    background: var(--navy);
    transform: rotate(-47.44deg);
    transform-origin: right center;
    opacity: 0.15;
}
.auth-showcase__logo {
    width: 280px;
    max-width: 60%;
    height: auto;
    z-index: 1;
}
.auth-showcase__copy { z-index: 1; max-width: 460px; }
.auth-showcase__eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.75rem;
    color: var(--navy);
    opacity: 0.7;
    margin: 0 0 12px;
    font-weight: 500;
}
.auth-showcase__title {
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.15;
    color: var(--navy);
    margin: 0;
    letter-spacing: -0.5px;
}

/* ---------- right: form panel ---------- */
.auth-form-panel {
    grid-area: form;
    background: var(--white);
    padding: 80px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-form-card { width: 100%; max-width: 400px; }
.auth-form-card__title {
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--navy);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}
.auth-form-card__subtitle {
    color: var(--muted);
    margin: 0 0 32px;
    font-size: 0.95rem;
}

.auth-field { margin-bottom: 18px; }
.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 6px;
}
.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(14, 23, 102, 0.12);
}

.auth-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 24px;
    font-size: 0.85rem;
}
.auth-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}
.auth-link:hover { text-decoration: underline; }
.auth-help {
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
}
.auth-help ul { margin: 4px 0 0; padding-left: 18px; }
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}
.auth-remember input { accent-color: var(--navy); }

.auth-btn-primary {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    position: relative;
    overflow: hidden;
}
.auth-btn-primary::after {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 24px;
    background: var(--lime);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0;
    transition: opacity 0.2s;
}
.auth-btn-primary:hover { background: #1a266b; }
.auth-btn-primary:hover::after { opacity: 1; }
.auth-btn-primary:active { transform: translateY(1px); }

.auth-legal {
    margin-top: 28px;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}
.auth-legal a { color: var(--navy); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }

.auth-error {
    background: #fdecec;
    border-left: 4px solid #c82c4a;
    color: #7a1f1f;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ---------- footer with 47.44 degree wedge ---------- */
.auth-footer {
    grid-area: footer;
    position: relative;
    height: 56px;
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 0 32px;
}
.auth-footer__meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}
.auth-footer__wedge {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 280px;
    background: var(--lime);
    clip-path: polygon(61px 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
}
.auth-footer__wordmark {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
        grid-template-areas: "showcase" "form" "footer";
    }
    .auth-showcase { padding: 48px 32px; min-height: 280px; }
    .auth-showcase__logo { width: 200px; }
    .auth-showcase__title { font-size: 1.6rem; }
    .auth-form-panel { padding: 48px 24px; }
    .auth-footer__wedge { width: 200px; }
}
