:root {
    --navy: #142746;
    --blue: #3563e9;
    --blue-dark: #254dc5;
    --text: #263650;
    --muted: #7c8ba3;
    --border: #e4eaf3;
    --green: #16a879;
    --bg: #f3f6fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input {
    font: inherit;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

/* LEFT PANEL */

.info-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 42px 9%;
    color: white;
    background:
        radial-gradient(circle at 90% 10%,
            rgba(91, 133, 245, 0.38),
            transparent 35%),
        linear-gradient(145deg, #142746, #1d3c70 65%, #2854a0);
}

.info-panel::before,
.info-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.info-panel::before {
    width: 440px;
    height: 440px;
    right: -200px;
    bottom: -100px;
}

.info-panel::after {
    width: 320px;
    height: 320px;
    right: -140px;
    bottom: -40px;
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.brand-icon svg {
    width: 25px;
    height: 25px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-caption {
    margin-top: 4px;
    color: #bdcdee;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.info-content {
    position: relative;
    z-index: 1;
    max-width: 450px;
    margin: 5px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5de0b1;
}

.info-content h1 {
    margin-top: 25px;
    font-size: clamp(34px, 3.5vw, 49px);
    line-height: 1.17;
    letter-spacing: -1.5px;
    font-weight: 750;
}

.info-content h1 span {
    color: #94b5ff;
}

.info-content>p {
    max-width: 390px;
    margin-top: 19px;
    color: #c4d2eb;
    font-size: 14px;
    line-height: 1.9;
}

/* FEATURE CARDS */

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 34px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 12px;
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

.attendance-icon {
    background: rgba(74, 222, 173, 0.15);
    color: #73ecc0;
}

.bus-icon {
    background: rgba(255, 196, 92, 0.15);
    color: #ffd078;
}

.feature h3 {
    font-size: 13px;
    font-weight: 650;
}

.feature p {
    margin-top: 5px;
    color: #c4d2eb;
    font-size: 11px;
    line-height: 1.5;
}

.panel-footer {
    position: relative;
    z-index: 1;
    color: #aebfdf;
    font-size: 12px;
}

/* RIGHT PANEL */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 9%;
    background:
        radial-gradient(circle at 100% 0%,
            #e8eeff,
            transparent 36%),
        #fff;
}

.login-container {
    width: 100%;
    max-width: 390px;
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading .welcome-text {
    margin-bottom: 11px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.login-heading h2 {
    color: var(--navy);
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -0.9px;
}

.login-heading>p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* DJANGO MESSAGES */

.messages {
    margin-bottom: 22px;
}

.message {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff1f2;
    color: #b42335;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* FORM */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #34435c;
    font-size: 13px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #8291a8;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 53px;
    padding: 0 48px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #f9faff;
    color: var(--navy);
    font-size: 14px;
    transition: 0.2s ease;
}

.form-control::placeholder {
    color: #a2aec0;
}

.form-control:hover {
    border-color: #c8d5ed;
}

.form-control:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(53, 99, 233, 0.09);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #65748b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.password-toggle:hover {
    color: var(--blue);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -3px;
    margin-bottom: 24px;
}

.forgot-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* SIGN-IN BUTTON */

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    height: 53px;
    border: none;
    border-radius: 11px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 7px 17px rgba(53, 99, 233, 0.2);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-btn svg {
    width: 17px;
    height: 17px;
}

.submit-btn:hover {
    background: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(53, 99, 233, 0.27);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* SECURITY NOTE */

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    color: #8b98ab;
    font-size: 12px;
    text-align: center;
}

.security-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.login-footer {
    margin-top: 43px;
    padding-top: 19px;
    border-top: 1px solid #edf0f6;
    color: #9ba6b7;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

/* ALREADY LOGGED IN */

.logged-in-card {
    padding: 32px 24px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    text-align: center;
}

.logged-in-card h2 {
    color: var(--navy);
    font-size: 24px;
}

.logged-in-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.home-link {
    display: inline-flex;
    margin-top: 22px;
    padding: 12px 23px;
    border-radius: 10px;
    background: var(--blue);
    color: white;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .page {
        grid-template-columns: 1fr 1fr;
    }

    .info-panel {
        padding: 35px 7%;
    }

    .login-panel {
        padding: 35px 7%;
    }

    .info-content h1 {
        font-size: 37px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
        padding: 22px 16px;
    }

    .info-panel {
        display: none;
    }

    .login-panel {
        padding: 0;
        background: transparent;
    }

    .login-container {
        max-width: 420px;
        margin: auto;
        padding: 28px 23px;
        border: 1px solid #e7ecf5;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 15px 45px rgba(32, 54, 99, 0.07);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 34px;
    }

    .mobile-brand .brand-icon {
        color: var(--blue);
        border: none;
        background: #edf2ff;
    }

    .mobile-brand .brand-name {
        color: var(--navy);
        font-size: 16px;
    }

    .mobile-brand .brand-caption {
        color: var(--muted);
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .login-heading {
        margin-bottom: 26px;
    }

    .login-heading h2 {
        font-size: 28px;
    }

    .login-footer {
        margin-top: 31px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 24px 17px;
    }

    .login-heading h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}