:root {
    color-scheme: light;
    --bg: #f3f7fb;
    --text: #14213d;
    --muted: #5d6b82;
    --gold: #b58b2a;
    --gold-dark: #8b6819;
    --blue: #123b73;
    --card: rgba(255, 255, 255, 0.92);
    --border: rgba(18, 59, 115, 0.12);
    --shadow: 0 26px 70px rgba(22, 39, 74, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 18%, rgba(181, 139, 42, 0.18), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(18, 59, 115, 0.16), transparent 26%),
        linear-gradient(135deg, #edf4fb 0%, #ffffff 48%, #eef5ff 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(18, 59, 115, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 59, 115, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 75%);
}

.page {
    display: grid;
    min-height: 100vh;
    grid-template-rows: 1fr auto;
    align-items: center;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 28px;
}

.hero {
    margin-bottom: 30px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 9px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(181, 139, 42, 0.32);
    border-radius: 999px;
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 0.14em;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 28px rgba(181, 139, 42, 0.12);
}

h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.12;
    letter-spacing: 0.03em;
}

.hero p {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
}

.card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(191, 74, 65, 0.18);
    border-radius: 14px;
    color: #9d2f28;
    background: rgba(255, 240, 238, 0.95);
    line-height: 1.6;
}

form {
    display: grid;
    gap: 14px;
}

label {
    color: #263a5f;
    font-weight: 700;
}

input {
    width: 100%;
    height: 54px;
    padding: 0 17px;
    border: 1px solid rgba(18, 59, 115, 0.18);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus {
    border-color: rgba(181, 139, 42, 0.75);
    box-shadow: 0 0 0 4px rgba(181, 139, 42, 0.14);
    transform: translateY(-1px);
}

button {
    height: 56px;
    margin-top: 12px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue), #1d5da7 54%, var(--gold));
    box-shadow: 0 16px 34px rgba(18, 59, 115, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(18, 59, 115, 0.3);
    filter: saturate(1.08);
}

button:active {
    transform: translateY(0);
}

.tip {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

footer {
    margin-top: 46px;
    color: rgba(20, 33, 61, 0.58);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 24px, 1040px);
        padding-top: 44px;
    }

    .card {
        padding: 24px;
        border-radius: 22px;
    }

    input,
    button {
        height: 52px;
    }
}
