:root {
    --blue: #4a9eff;
    --purple: #6c5ce7;
    --pink: #c44dff;
    --text: #2d1b4e;
    --text-mid: rgba(45, 27, 78, 0.6);
    --text-light: rgba(45, 27, 78, 0.42);
    --grad: linear-gradient(135deg, #4a9eff, #6c5ce7 50%, #c44dff);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.75);
    --shadow: 0 24px 70px rgba(120, 80, 200, 0.16);
    --ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #eef1ff 0%, #f7ecff 45%, #e8f6ff 100%);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle 600px at 12% 18%, rgba(255, 150, 200, 0.18), transparent),
        radial-gradient(circle 520px at 88% 22%, rgba(150, 120, 255, 0.16), transparent),
        radial-gradient(circle 560px at 50% 92%, rgba(120, 200, 255, 0.15), transparent);
    pointer-events: none;
    z-index: 0;
}

/* 居中容器 */
.center-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* 液态玻璃卡片 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.card {
    width: 100%;
    max-width: 440px;
    border-radius: 32px 52px 36px 56px;
    padding: 48px 44px 40px;
    position: relative;
    animation: cardIn 0.6s var(--ease) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 标题 */
.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 6px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.brand .en {
    font-size: 0.72rem;
    letter-spacing: 5px;
    color: var(--text-light);
    font-weight: 600;
}

/* 表单 */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.field input {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(120, 80, 200, 0.16);
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.field input::placeholder { color: rgba(45, 27, 78, 0.3); }

.field input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.field .hint {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.35);
    margin-top: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(108, 92, 231, 0.45);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 提示消息 */
.msg {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    margin-bottom: 18px;
    display: none;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.msg.show { display: block; animation: msgIn 0.35s ease both; }

@keyframes msgIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.28);
    color: #c0392b;
}

.msg-ok {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

/* 底部链接 */
.foot-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(120, 80, 200, 0.12);
    font-size: 0.82rem;
    color: var(--text-light);
}

.foot-link a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.foot-link a:hover { text-decoration: underline; }

/* 加载动画 */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }
