* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Tahoma", Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, .55), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(37, 99, 235, .45), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(251, 191, 36, .18), transparent 35%),
        linear-gradient(135deg, #020617, #0f172a 45%, #1e1b4b);
 
    color: #fff;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 60px 10%;
    position: relative;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(#fff 1px, transparent 1px),
        radial-gradient(#a78bfa 1px, transparent 1px);
    background-size: 90px 90px, 140px 140px;
    opacity: .18;
    animation: starsMove 20s linear infinite;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-90px); }
}

.brand-side,
.login-card {
    position: relative;
    z-index: 2;
}

.brand-side {
    width: 50%;
    text-align: center;
}

.star-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: #facc15;
    text-shadow:
        0 0 20px rgba(250, 204, 21, .9),
        0 0 60px rgba(250, 204, 21, .5);
    animation: glow 2.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.07); filter: brightness(1.3); }
}

.brand-side h1 {
    font-size: 70px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.brand-side h1 span {
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-side p {
    font-size: 27px;
    color: #e0e7ff;
    margin-bottom: 35px;
}

.slogan {
    font-size: 26px;
    color: #f8fafc;
    margin-bottom: 35px;
}

.stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 28px;
}

.stat-box {
    width: 230px;
    padding: 10px 10px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.stat-icon {
    font-size: 35px;
    margin-bottom: 12px;
}

.stat-box h3 {
    font-size: 35px;
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 15px;
    color: #dbeafe;
    margin: 0;
}

.features {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(18px);
    color: #e0f2fe;
}

.login-card {
    width: 470px;
    padding: 42px;
    border-radius: 34px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(28px);
    box-shadow:
        0 40px 100px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.login-card h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.switch {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.switch label {
    flex: 1;
    cursor: pointer;
}

.switch input {
    display: none;
}

.switch span {
    display: block;
    padding: 16px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #dbeafe;
    transition: .3s;
}

.switch input:checked + span {
    background: linear-gradient(135deg, #6366f1, #7c3aed, #2563eb);
    color: #fff;
    box-shadow: 0 15px 30px rgba(99,102,241,.35);
}

.input-box {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 0 18px;
    border-radius: 19px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
}

.input-box span {
    font-size: 21px;
    opacity: .85;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}

.input-box input::placeholder {
    color: #94a3b8;
}

.input-box:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139,92,246,.18);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 24px;
    color: #cbd5e1;
    font-size: 14px;
}

.options a {
    color: #e0e7ff;
    text-decoration: none;
}

button {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 20px;
    font-size: 19px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #7c3aed, #9333ea);
    box-shadow: 0 20px 45px rgba(124,58,237,.45);
    transition: .3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 65px rgba(124,58,237,.65);
}

.divider {
    text-align: center;
    color: #94a3b8;
    margin: 22px 0;
}

.create-account {
    display: block;
    text-align: center;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    color: #e0e7ff;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    transition: .3s;
}

.create-account:hover {
    background: rgba(255,255,255,.1);
}

.powered {
    margin-top: 28px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1000px) {
    body {
        overflow: auto;
    }

    .login-page {
        flex-direction: column;
        padding: 40px 20px;
    }

    .brand-side {
        width: 100%;
    }

    .brand-side h1 {
        font-size: 48px;
    }

    .stats,
    .features {
        flex-direction: column;
        align-items: center;
    }

    .login-card {
        width: 100%;
        max-width: 470px;
    }
}
/* ===========================
   Logo
=========================== */

.site-logo{
    width:150px;
    height:150px;
    margin:0 auto 25px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.site-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 12px 35px rgba(0,0,0,.35));
    transition:.35s;
}

.site-logo img:hover{
    transform:scale(1.06) rotate(-2deg);
}
.teacher-ranking{
    margin-top:30px;
    padding:20px;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
}

.teacher-ranking h3{
    margin-bottom:18px;
    text-align:center;
    color:#fff;
}

.ranking-table{
    width:100%;
    border-collapse:collapse;
}

.ranking-table th{
    color:#dbeafe;
    font-size:14px;
    padding:10px 6px;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.ranking-table td{
    padding:12px 6px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-size:14px;
}

.ranking-table tr:last-child td{
    border-bottom:none;
}

.rank{
    font-size:20px;
    font-weight:bold;
}

.points{
    font-weight:bold;
    color:#facc15;
}
.error-box{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fecaca;
    padding:12px 14px;
    border-radius:14px;
    margin:0 0 15px;
    text-align:center;
    font-size:14px;
    font-weight:700;
    line-height:1.7;
}