/* ============================================
   登录页样式 · 干净、耐看、不花哨
   ============================================ */

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ---------- 卡片 ---------- */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 36px 32px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06),
                0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid #eef0f5;
}

/* ---------- 品牌区 ---------- */
.brand {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: -1px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

/* ---------- 表单字段 ---------- */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 500;
}

.field input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
    color: #94a3b8;
}

.field input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ---------- 行内选项 ---------- */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 12.5px;
    color: #64748b;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2563eb;
    cursor: pointer;
}

.tip {
    color: #94a3b8;
}

/* ---------- 提交按钮 ---------- */
button[type="submit"] {
    width: 100%;
    height: 44px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #1d4ed8;
}

button[type="submit"]:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* ---------- 提示框 ---------- */
.alert {
    display: none;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.alert.show {
    display: block;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ---------- 底部 ---------- */
.footer {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: #94a3b8;
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 10px;
    }
    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}