:root {
    --primary: #0966f2;
    --primary-dark: #004dcc;
    --navy: #071b38;
    --navy-light: #12386e;
    --text: #0f2347;
    --muted: #64748b;
    --border: rgba(148, 163, 184, .35);
    --card: rgba(255, 255, 255, .86);
    --card-solid: #ffffff;
    --shadow: 0 30px 80px rgba(7, 27, 56, .28);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #071b38;
    overflow-x: hidden;
}

.auth-page {
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    background: linear-gradient(135deg, #061833 0%, #0a2d61 43%, #eef6ff 100%);
    isolation: isolate;
}

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: .62;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    background: url('../assets/login/education-bg.svg') center / cover no-repeat;
    overflow: hidden;
    z-index: 2;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 45%, rgba(0, 102, 255, .14), transparent 0 23%, transparent 60%),
        linear-gradient(90deg, rgba(4, 16, 36, .94), rgba(7, 31, 66, .76) 48%, rgba(7, 31, 66, .12));
}

.visual-content {
    position: relative;
    z-index: 3;
    max-width: 660px;
    padding: 18vh 7vw 10vh;
    color: #fff;
}

.mini-label {
    color: #8cc9ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    margin-bottom: 28px;
}

.visual-content h1 {
    margin: 0;
    font-weight: 900;
    font-size: clamp(48px, 6.4vw, 88px);
    line-height: .98;
    letter-spacing: -.04em;
}

.visual-content h1 span {
    font-weight: 400;
    color: rgba(255, 255, 255, .92);
}

.small-line {
    width: 76px;
    height: 4px;
    border-radius: 999px;
    margin: 34px 0 28px;
    background: linear-gradient(90deg, #0966f2, #49baff);
}

.visual-copy {
    max-width: 520px;
    font-size: 22px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
    margin: 0;
}

.visual-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.visual-stats div {
    min-width: 135px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    border-radius: 18px;
}

.visual-stats strong,
.visual-stats span {
    display: block;
}

.visual-stats strong {
    font-size: 20px;
}

.visual-stats span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    margin-top: 3px;
}

.floating-icons {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    color: rgba(115, 181, 255, .86);
    border: 3px solid rgba(115, 181, 255, .64);
    border-radius: 18px;
    font-size: 32px;
    opacity: .82;
    animation: floatMove 6s ease-in-out infinite;
}

.icon-one { top: 11%; left: 26%; animation-delay: .1s; }
.icon-two { top: 20%; left: 39%; animation-delay: 1s; }
.icon-three { top: 20%; left: 55%; animation-delay: 1.7s; }
.icon-four { top: 40%; left: 44%; animation-delay: .6s; }
.icon-five { top: 54%; left: 39%; animation-delay: 1.3s; }

@keyframes floatMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.auth-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px;
    position: relative;
    z-index: 4;
}

.login-card {
    width: min(100%, 560px);
    padding: 48px 50px 44px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .62);
    background: var(--card);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.brand-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 34px;
}

.brand-logo {
    width: 92px;
    height: auto;
}

.brand-area h2 {
    margin: 0;
    color: var(--text);
    font-size: 34px;
    letter-spacing: .03em;
    font-weight: 900;
}

.brand-area p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.welcome-text {
    text-align: center;
    margin-bottom: 28px;
}

.welcome-text h3 {
    margin: 0;
    font-size: 28px;
    color: var(--text);
    font-weight: 900;
}

.welcome-text p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 17px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.input-group {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .76);
    border-radius: 12px;
    padding: 0 16px;
    transition: .2s ease;
}

.input-group:focus-within {
    border-color: rgba(9, 102, 242, .92);
    box-shadow: 0 0 0 4px rgba(9, 102, 242, .12);
    background: #fff;
}

.input-icon {
    color: #64748b;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.input-group input {
    border: 0;
    outline: 0;
    background: transparent;
    flex: 1;
    font-size: 16px;
    color: var(--text);
    min-width: 0;
}

.input-group input::placeholder {
    color: #64748b;
}

.password-toggle {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
}

.remember-me input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.forgot-link,
.signup-text a {
    color: #005bd8;
    text-decoration: none;
    font-weight: 800;
}

.forgot-link:hover,
.signup-text a:hover {
    text-decoration: underline;
}

.signin-btn {
    height: 58px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
    background: linear-gradient(135deg, #0966f2, #0058e6);
    box-shadow: 0 14px 30px rgba(9, 102, 242, .28);
    transition: .2s ease;
}

.signin-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0058e6, #004dcc);
}

.signin-btn i {
    margin-left: 8px;
}

.separator {
    position: relative;
    text-align: center;
    margin: 28px 0 24px;
    color: #475569;
    font-weight: 700;
}

.separator::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(148, 163, 184, .32);
}

.separator span {
    position: relative;
    display: inline-block;
    background: rgba(255, 255, 255, .88);
    padding: 0 18px;
}

.google-btn {
    width: 100%;
    height: 56px;
    border: 1px solid rgba(148, 163, 184, .38);
    background: rgba(255, 255, 255, .72);
    border-radius: 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.google-btn:disabled {
    opacity: .9;
    cursor: not-allowed;
}

.google-mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    color: #4285f4;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 35, 71, .12);
}

.signup-text {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    color: #64748b;
    font-size: 15px;
}

.form-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.form-alert.success {
    color: #047857;
    background: #d1fae5;
    border-color: #a7f3d0;
}

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

    .auth-visual {
        min-height: 44vh;
    }

    .visual-content {
        padding: 10vh 7vw 8vh;
    }

    .auth-panel {
        min-height: auto;
        padding: 30px 20px 50px;
        background: linear-gradient(180deg, rgba(238, 246, 255, .42), #eef6ff);
    }

    .float-icon {
        opacity: .48;
    }
}

@media (max-width: 620px) {
    .visual-content h1 {
        font-size: 46px;
    }

    .visual-copy {
        font-size: 17px;
    }

    .login-card {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .brand-area {
        flex-direction: column;
        text-align: center;
    }

    .form-row,
    .signup-text {
        flex-direction: column;
        align-items: flex-start;
    }
}
