﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark: #145a32;
    --green-mid: #1e8449;
    --green-light: #27ae60;
    --gold: #f39c12;
    --gold-light: #f5b942;
    --ink: #1a2332;
    --ink-soft: #4a5568;
    --mist: #f0f4f8;
    --white: #ffffff;
    --border: #dde3ea;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0,0,0,.12);
}

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;   
    background: var(--mist);
}

.auth-main {
    display: flex;
    height: 100vh; /* instead of min-height */
    overflow: hidden;
}

.auth-form-panel {
    width: 480px;
    min-width: 480px;
    height: 100%; /* fill auth-main */
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 48px 52px;
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 24px rgba(0,0,0,.08);
    overflow-y: auto;
    overflow-x: hidden;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.brand-logo img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: .5px;
    line-height: 1.2;
}

.brand-name span {
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ── Steps ── */
.step {
    animation: fadeUp .3s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.step-sub {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

/* ── Back button ── */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    margin-bottom: 20px;
    padding: 6px 0;
    font-family: inherit;
    font-weight: 600;
    transition: color .2s;
}

.back-btn:hover {
    color: var(--green-mid);
}


/* ── Signup toggle link ── */
.signup-toggle {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 18px;
}

.signup-toggle a {
    color: var(--green-mid);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.signup-toggle a:hover {
    text-decoration: underline;
}

/* ── Footer ── */
.side-footer {
    margin-top: auto;
    padding-top: 32px;
    font-size: 11.5px;
    color: #9aa5b4;
    text-align: center;
    line-height: 1.7;
}

/* ══ RIGHT: splash panel ════════════════════════════════════════════ */
.auth-side {
    flex: 1;
    background: url("/images/nvsu_bg.jpg") center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    position: relative;
    overflow: hidden;
}

/* Overall soft dark overlay */
.auth-side {
    background-image: linear-gradient(rgba(0, 55, 20, 0.75), rgba(0, 55, 20, 0.65)), url("/images/nvsu_bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

    /* Decorative circles */
    .auth-side::before,
    .auth-side::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        opacity: .10;
        background: white;
        pointer-events: none;
    }

    .auth-side::before {
        width: 520px;
        height: 520px;
        top: -180px;
        right: -140px;
    }

    .auth-side::after {
        width: 360px;
        height: 360px;
        bottom: -100px;
        left: -80px;
    }

/* Text/logo content stays above background */
.side-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,.35);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.carousel-slide {
    display: none;
    text-align: center;
    position: relative;
    z-index: 2;
}

    .carousel-slide.active {
        display: block;
        animation: fadeUp .4s ease;
    }

    .carousel-slide h2 {
        font-size: 26px;
        font-weight: 800;
        color: white;
        margin-bottom: 12px;
        line-height: 1.3;
        max-width: 440px;
        /* Makes heading readable */
        text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    }

    .carousel-slide p {
        font-size: 15px;
        color: rgba(255,255,255,.90);
        max-width: 380px;
        margin: 0 auto;
        line-height: 1.7;
        /* Makes paragraph readable */
        text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
    }

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

    .carousel-dots button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,.4);
        cursor: pointer;
        transition: all .3s;
        padding: 0;
    }

        .carousel-dots button.active {
            background: white;
            width: 24px;
            border-radius: 4px;
        }

/* ── Toast ── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    animation: toastIn .3s ease;
    max-width: 320px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    background: var(--green-mid);
}

.toast-error {
    background: #c0392b;
}

/* ── Spinner overlay ── */
#login-spinner {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(4px);
    z-index: 8888;
    align-items: center;
    justify-content: center;
}

    #login-spinner.show {
        display: flex;
    }

.spin-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #ddd;
    border-top-color: var(--green-mid);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .auth-side {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 36px 28px;
    }

    .input-row, .input-row-3 {
        grid-template-columns: 1fr;
    }
}

.selection-card {
    transition: all .3s ease;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.15);
}

.selection-card .card-icon {
    font-size: 2rem;
}

fieldset {
    border: 0;
}

.review-card {
    font-size: 12px;
}

.review-card .fw-semibold {
    font-size: 12px;
    font-weight: 600;
}

.selection-card h5 {
    font-size: 12px;
}

.selection-card p {
    font-size: 12px;
    line-height: 1.4;
}

.info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.info-card i {
    font-size: 1.1rem;
}

.info-card small {
    display: block;
    color: #6c757d;
    font-size: .75rem;
    margin-bottom: 2px;
}

.info-card strong {
    display: block;
    font-size: .95rem;
    font-weight: 600;
}