﻿:root {
    --ink: #0d2b1f;
    --ink-soft: #123a29;
    --teal: #0e6e67;
    --teal-soft: #e4f2ec;
    --amber: #3ba95e;
    --mist: #eef6f0;
    --card: #ffffff;
    --slate: #5b7a6b;
    --slate-dark: #22402f;
    --line: #e0ede4;
    --radius: 14px;
    --dark-green: #17523c;
    --green: #2d9c74;
    --white: #fff;
    --shadow: 0 10px 16px rgba(13, 43, 31, 0.08);
    --inputline: #ccc;
    --brand: linear-gradient(135deg, var(--green), #1f7a54);
    --bg-gredents: linear-gradient(90deg, rgba(243, 255, 250, 1) 0%, rgba(224, 255, 202, 1) 100%);
    --disabled: #f5fcf8;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --amber: #3ba95e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--mist);
    color: var(--slate-dark);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.shell {
    display: grid;
    grid-template-columns: minmax(340px, 42%) 1fr;
    width: 100%;
    min-height: 100vh;
}

/* ============ LEFT: SEAL PANEL ============ */
.panel {
    position: relative;
    background: radial-gradient(circle at 18% 8%, rgba(242,169,59,0.14), transparent 55%), linear-gradient(165deg, var(--dark-green) 0%, var(--dark-green) 55%, #0c1c33 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3rem 2.4rem;
    overflow: hidden;
}

    .panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: radial-gradient(circle at 30% 30%, black, transparent 75%);
        pointer-events: none;
    }

.brand-mark {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

    .brand-mark .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 0 3px rgba(45,156,116,0.22);
    }

/* --- the seal / orbit signature --- */
.seal-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-rings {
    position: absolute;
    inset: 0;
}

.orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: spin 48s linear infinite;
}

    .orbit.reverse {
        animation-direction: reverse;
        animation-duration: 64s;
    }

.pill {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: rgba(255,255,255,0.92);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    animation: counter-spin 48s linear infinite;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.orbit.reverse .pill {
    animation-duration: 64s;
    animation-direction: reverse;
}

.pill--1 {
    transform: rotate(0deg) translateX(172px) rotate(0deg) translate(-50%,-50%);
}

.pill--2 {
    transform: rotate(90deg) translateX(172px) rotate(-90deg) translate(-50%,-50%);
}

.pill--3 {
    transform: rotate(180deg) translateX(172px) rotate(-180deg) translate(-50%,-50%);
}

.pill--4 {
    transform: rotate(270deg) translateX(172px) rotate(-270deg) translate(-50%,-50%);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-spin {
    from {
        transform: rotate(0deg) translateX(172px) rotate(0deg) translate(-50%,-50%);
    }

    to {
        transform: rotate(-360deg) translateX(172px) rotate(360deg) translate(-50%,-50%);
    }
}
/* re-anchor each pill's counter rotation to its own base angle via nested wrapper trick */
.pill--1, .pill--2, .pill--3, .pill--4 {
    animation-name: none;
}

.orbit-inner {
    position: absolute;
    inset: 0;
    animation: counter 48s linear infinite;
}

.orbit.reverse .orbit-inner {
    animation-duration: 64s;
    animation-direction: reverse;
}

@keyframes counter {
    to {
        transform: rotate(-360deg);
    }
}

.seal-core {
    position: relative;
    z-index: 3;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--amber), var(--ink) 70%);
    border: 1px solid rgba(242,169,59,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.04), 0 20px 40px rgba(0,0,0,0.35);
}

    .seal-core svg {
        width: 60px;
        height: 60px;
    }
    .seal-core img {
        width: 70%;
        filter: brightness(0) invert(1);
    }
.ring-static {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
}

    .ring-static.r1 {
        inset: 34px;
    }

    .ring-static.r2 {
        inset: 8px;
        border-style: dashed;
        border-color: rgba(242,169,59,0.28);
    }

.headline-block {
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.9rem;
}

.headline {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    max-width: 25ch;
}

    .headline em {
        font-style: italic;
        font-weight: 400;
        color: var(--amber);
    }

.subcopy {
    margin-top: 0.9rem;
    color: rgba(255,255,255,0.62);
    font-size: 0.92rem;
    max-width: 54ch;
    line-height: 1.55;
}

.panel-footer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1.6rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

    .panel-footer strong {
        color: rgba(255,255,255,0.78);
        font-weight: 600;
    }

/* ============ RIGHT: FORM PANEL ============ */
.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--mist);
}

.form-card {
    width: 100%;
    max-width: 400px;
}

.form-head {
    margin-bottom: 1.9rem;
}

    .form-head .kicker {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--teal);
        margin-bottom: 0.5rem;
    }

    .form-head h1 {
        font-family: var(--font-display);
        font-weight: 500;
        font-size: 1.9rem;
        color: var(--ink);
    }

    .form-head p {
        margin-top: 0.4rem;
        color: var(--slate);
        font-size: 0.92rem;
    }

/* institution selector */
.campus-select {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.campus-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--slate);
    cursor: pointer;
    transition: all 0.16s ease;
}

    .campus-chip:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

    .campus-chip.active {
        background: var(--teal-soft);
        border-color: var(--teal);
        color: var(--teal);
        font-weight: 600;
    }

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    position: relative;
}

    .field label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--slate-dark);
        margin-bottom: 0.4rem;
    }

    .field .input-row {
        position: relative;
        display: flex;
        align-items: center;
    }

    .field input {
        width: 100%;
        font-family: var(--font-body);
        font-size: 0.95rem;
        padding: 0.78rem 0.9rem;
        border-radius: 10px;
        border: 1px solid var(--inputline);
        background: var(--card);
        color: var(--ink);
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .field input::placeholder {
            color: #9aa7b8;
        }

        .field input:focus {
            border-color: var(--teal);
            box-shadow: 0 0 0 3px rgba(14,110,103,0.12);
        }

    .field .toggle-visibility {
        position: absolute;
        right: 0.85rem;
        background: none;
        border: none;
        color: var(--slate);
        font-family: var(--font-mono);
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        cursor: pointer;
        text-transform: uppercase;
    }

        .field .toggle-visibility:hover {
            color: var(--teal);
        }

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate);
    cursor: pointer;
    user-select: none;
}

.checkbox {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid var(--inputline);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

input[type="checkbox"] {
    display: none;
}

    input[type="checkbox"]:checked + .checkbox {
        background: var(--teal);
        border-color: var(--teal);
    }

.checkbox svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.15s ease;
}

input[type="checkbox"]:checked + .checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.forgot {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}

    .forgot:hover {
        text-decoration: underline;
    }

.submit {
    margin-top: 0.3rem;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

    .submit:hover {
        transform: translateY(-1.5px);
        filter: brightness(1.04);
    }

    .submit:active {
        transform: translateY(0);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--slate);
    font-size: 0.76rem;
    margin: 0.3rem 0;
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.sso-row {
    display: flex;
    gap: 0.7rem;
}

.sso-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--slate-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .sso-btn:hover {
        border-color: var(--teal);
        background: var(--teal-soft);
    }

.footnote {
    margin-top: 1.7rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--slate);
}

    .footnote a {
        color: var(--teal);
        font-weight: 600;
        text-decoration: none;
    }

        .footnote a:hover {
            text-decoration: underline;
        }

/* status strip using the green tokens */
.status-strip {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    color: var(--slate);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: var(--disabled);
    border: 1px solid var(--line);
}

    .status-strip .pulse {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 0 3px rgba(45,156,116,0.16);
        flex-shrink: 0;
    }

@media (max-width: 860px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 1.2rem 1rem;
        min-height: 280px;
    }

    .seal-wrap {
        max-width: 220px;
        margin: 0.6rem auto;
    }

    .pill--1, .pill--2, .pill--3, .pill--4 {
        display: none;
    }

    .subcopy {
        max-width: 100%;
    }

    .form-side {
        padding: 2.4rem 1.6rem 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit, .orbit-inner {
        animation: none;
    }
}

.logo-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap:10px;
    width: max-content;
    animation: logo-scroll 25s linear infinite;
}

    .logo-track img {
        height: 60px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
        /*        filter: grayscale(100%);*/
        opacity: 0.7;
        transition: filter 0.3s, opacity 0.3s;
        border: 1px solid rgba(255, 255, 255, 0.14);
        padding: 6px;
        border-radius: 6px;
        background:#fff
    }

        .logo-track img:hover {
            filter: grayscale(0%);
            opacity: 1;
        }

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/* =========================================
   THEME BUTTON WRAPPER
========================================= */

.theme-button-wrapper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    z-index: 99999;
}


/* =========================================
   THEME BUTTON
========================================= */

.theme-btn {
    position: relative;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: var(--brand);
    color: var(--white);

    cursor: pointer;

    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


/* =========================================
   HOVER BUTTON
========================================= */

.theme-btn:hover {
    transform: translateY(-3px) rotate(75deg);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, .24);
}


.theme-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .8);
    outline-offset: 3px;
}


/* =========================================
   TOOLTIP
========================================= */

.theme-tooltip {
    position: absolute;

    right: 64px;
    top: 50%;

    transform: translateY(-50%) translateX(8px);

    background: #1f2937;
    color: #ffffff;

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .18);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


/* =========================================
   TOOLTIP ARROW
========================================= */

.theme-tooltip::after {
    content: "";

    position: absolute;

    right: -6px;
    top: 50%;

    transform: translateY(-50%);

    width: 0;
    height: 0;

    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #1f2937;
}


/* =========================================
   SHOW TOOLTIP
========================================= */

.theme-button-wrapper:hover .theme-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}


/* Keyboard accessibility */

.theme-btn:focus-visible + .theme-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}

/* Invisible click-catcher — no dark backdrop, just closes the popover
   when you click outside of it */
#themeOverlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    z-index: 99997;
}

    #themeOverlay.show {
        visibility: visible;
    }

/* Popover panel */
#themePanel {
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: 176px;
    background: var(--card, #fff);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15,23,42,.18), 0 2px 8px rgba(15,23,42,.08);
    padding: 14px;
    z-index: 99999;
    transform-origin: bottom right;
    transform: scale(.85) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s ease, visibility .22s;
}

    #themePanel.open {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
    }

/* Header is visually minimal — kept for accessibility (dialog title +
   close control) but styled to stay out of the way */
.theme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .theme-header h3 {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted, #94a3b8);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

#themeClose {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

    #themeClose:hover {
        background: rgba(0,0,0,.06);
    }

    #themeClose:focus-visible,
    .theme-card:focus-visible {
        outline: 2px solid var(--brand, #2D9C74);
        outline-offset: 2px;
    }

/* Swatch grid — 3 columns */
.theme-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Swatch */
.theme-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

    .theme-card:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 10px rgba(0,0,0,.2);
    }

    .theme-card.active {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand, #2D9C74);
    }

/* Names are hidden — the color itself is the label */
.theme-name {
    display: none;
}

.theme-color {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Theme colors — these are ONLY the little swatch previews shown inside
   the picker panel itself. They do NOT change your site's actual colors.
   The real site-wide color change comes from THEME_FILES in the JS,
   which loads a separate theme-*.css file that redefines --brand, --card,
   etc. See theme-example.css for what that file needs to contain. */
.green {
    background: #2D9C74;
}

.yellow {
    background: #F5D98B;
}

.teal {
    background: #1B9C85;
}

.orange {
    background: #F4B183;
}

.pink {
    background: #EEDDDD;
}

.lavender {
    background: #B6B8EA;
}

.peach {
    background: #F6D2A4;
}

.steel {
    background: #AFC3DD;
}

.blue {
    background: #349ED7;
}

/* Legacy colors kept in case you still reference them elsewhere */
.purple {
    background: #a876e0;
}

.red {
    background: #e59766;
}
