:root {
    --ink: #24304a;
    --muted: #69738a;
    --primary: #6259e8;
    --primary-dark: #4a43c7;
    --chemistry: #16a085;
    --politics: #f08c46;
}

body {
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.login-page {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 210, 102, 0.38), transparent 26%),
        radial-gradient(circle at 85% 80%, rgba(87, 204, 153, 0.3), transparent 27%),
        linear-gradient(135deg, #f6f3ff 0%, #edf8ff 50%, #fff8ec 100%);
}

.login-card {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(65, 72, 120, 0.18);
    backdrop-filter: blur(12px);
}

.rocket-icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff1bf, #ffe083);
    box-shadow: 0 12px 24px rgba(228, 170, 55, 0.2);
    font-size: 2.25rem;
    transform: rotate(-5deg);
}

.eyebrow {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.intro-text,
.form-text,
.cheer-text {
    color: var(--muted);
}

.subject-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.chemistry-badge {
    color: #08735f;
    background: #dff8ef;
}

.politics-badge {
    color: #a8531c;
    background: #fff0e3;
}

.form-control {
    min-height: 58px;
    border: 2px solid #e7e7f3;
    border-radius: 16px;
    color: var(--ink);
    background-color: #fbfbfe;
}

.form-control:focus {
    border-color: #9993f2;
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(98, 89, 232, 0.14);
}

.main-button,
.history-button {
    min-height: 56px;
    border-radius: 16px;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.main-button {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #7b6ef6);
    box-shadow: 0 12px 24px rgba(98, 89, 232, 0.24);
}

.main-button:hover,
.main-button:focus {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark), #655be2);
    transform: translateY(-2px);
}

.history-button {
    border-width: 2px;
    border-color: #cbc8fa;
    color: var(--primary-dark);
    background-color: #f8f7ff;
}

.history-button:hover,
.history-button:focus {
    border-color: var(--primary);
    color: #fff;
    background-color: var(--primary);
    transform: translateY(-2px);
}

.decor {
    position: absolute;
    border-radius: 42% 58% 60% 40%;
    opacity: 0.55;
    filter: blur(1px);
}

.decor-one {
    top: -80px;
    right: -70px;
    width: 260px;
    height: 260px;
    background: linear-gradient(145deg, #a89fff, #7bdff2);
    transform: rotate(25deg);
}

.decor-two {
    bottom: -100px;
    left: -70px;
    width: 280px;
    height: 280px;
    background: linear-gradient(145deg, #ffd166, #ff9f80);
    transform: rotate(-18deg);
}

@media (max-width: 575.98px) {
    .login-page {
        align-items: flex-start !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

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

    .display-6 {
        font-size: 2rem;
    }

    .decor {
        opacity: 0.32;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-button,
    .history-button {
        transition: none;
    }
}
