/* 方案 D · 浅蓝玻璃渐变：清爽亮色、大圆角、蓝紫渐变按钮，年轻但不花 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root { --ink: #132345; --dim: #64769a; --brand: #4f7cff; }

body {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 28px 18px calc(26px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(165deg, #e9f0ff, #f4f7ff 46%, #eef2ff);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
}

.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.aurora .b1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle, rgba(79, 124, 255, .30), transparent 68%); }
.aurora .b2 { width: 40vmax; height: 40vmax; right: -12vmax; bottom: -14vmax; background: radial-gradient(circle, rgba(124, 92, 255, .22), transparent 68%); }
.aurora .b3 { width: 26vmax; height: 26vmax; right: 8vw; top: 4vh; background: radial-gradient(circle, rgba(56, 189, 248, .28), transparent 70%); }
.aurora .grid { display: none; }

.login-panel {
    width: 100%; max-width: 440px; padding: 32px 26px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 30px 70px -32px rgba(50, 78, 160, .55), 0 1px 0 #fff inset;
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.brand { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: #7b8dbb; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7c5cff); box-shadow: 0 0 10px rgba(79, 124, 255, .55); }

.header-left { margin-bottom: 24px; }
.header-left h1 {
    font-size: clamp(26px, 6.6vw, 30px); font-weight: 700; letter-spacing: -.6px; line-height: 1.2;
    background: linear-gradient(100deg, #1b2f5c 20%, #35509b 62%, #4f7cff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-left .hint { margin-top: 9px; font-size: 14px; color: var(--dim); }
.header-left .buy { margin-top: 12px; font-size: 12.5px; color: #8798b8; }
.header-left .buy a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(79, 124, 255, .32); padding-bottom: 1px; }
.header-left .buy a:hover { color: #2b52c8; border-bottom-color: #2b52c8; }

.error-alert {
    display: none; align-items: center; gap: 10px;
    margin-bottom: 16px; padding: 12px 14px;
    font-size: 13px; font-weight: 500; color: #a4262c;
    background: rgba(255, 236, 238, .9); border: 1px solid #fbc9cd; border-radius: 14px;
}
.error-alert::before { content: '!'; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: #f0616b; }

.input-group { margin-bottom: 22px; }
.input-group label { display: block; margin-bottom: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: #44557c; }

.field { position: relative; }
.field-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: #8296bd; pointer-events: none; }

.input-field {
    width: 100%; padding: 15px 15px 15px 44px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15.5px; letter-spacing: 1.4px; color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border: 1px solid #d9e3f7; border-radius: 14px;
    outline: none; transition: border-color .18s, box-shadow .18s;
    box-shadow: 0 4px 12px -8px rgba(50, 78, 160, .4);
}
.input-field::placeholder { color: #9fb0cd; letter-spacing: .6px; }
.input-field:hover { border-color: #c3d3f0; }
.input-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 124, 255, .16); }
.input-field.input-error { border-color: #f4838a; background: #fff; box-shadow: 0 0 0 3px rgba(240, 97, 107, .16); }

.action { margin-top: 24px; }
.submit-btn {
    width: 100%; padding: 16px;
    font: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: .5px; color: #fff;
    background: linear-gradient(100deg, #4f7cff, #7c5cff 54%, #38bdf8);
    border: none; border-radius: 14px; cursor: pointer;
    box-shadow: 0 14px 28px -14px rgba(79, 124, 255, .85);
    transition: transform .16s, filter .18s, box-shadow .18s;
}
.submit-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 18px 32px -14px rgba(79, 124, 255, .95); }
.submit-btn:active { transform: none; filter: brightness(.97); }
.submit-btn:focus-visible { outline: 2px solid #2b52c8; outline-offset: 3px; }
.submit-btn.loading { background: linear-gradient(100deg, #9fadd0, #a9b6d6); cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.submit-btn.success { background: linear-gradient(100deg, #12a06e, #33c894); box-shadow: 0 14px 28px -14px rgba(18, 160, 110, .8); }

.loading-spinner { display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: #94a5c4; }

@media (max-width: 400px) { .login-panel { padding: 26px 18px 18px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation: none !important; } }