/* 维优交通系统 · 通用样式
 *
 * 配色沿用微信小程序端的规范，保持两端视觉一致：
 *   主题蓝 #12B7F5 / 按下 #0FA8E3 / 输入框底 #F5F6F7
 *   次要文字 #8A9099 / 正文 #222226 / 错误红 #E8453C
 */

:root {
    --brand: #12B7F5;
    --brand-dark: #0FA8E3;
    --brand-soft: #E8F7FE;
    --input-bg: #F5F6F7;
    --text: #222226;
    --text-muted: #8A9099;
    --text-placeholder: #AAB0B8;
    --danger: #E8453C;
    --success: #4CD964;
    --border: #E5E7EB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: linear-gradient(160deg, #EAF4FB 0%, #F7FBFE 60%, #FFFFFF 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

/* ── 卡片 ─────────────────────────────────── */
.card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 40px 32px 32px;
    box-shadow: 0 4px 24px rgba(18, 183, 245, 0.10),
                0 1px 3px rgba(0, 0, 0, 0.04);
}

.brand {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: background .15s, border-color .15s;
}

.field input::placeholder { color: var(--text-placeholder); }

.field input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.12);
}

.hint {
    font-size: 12px;
    color: var(--text-placeholder);
    margin-top: 5px;
}

.required::after {
    content: " *";
    color: var(--danger);
}

/* ── 按钮 ─────────────────────────────────── */
.btn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 2px;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(0.985); }

/* ── 提示条 ───────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    border-radius: 9px;
    margin-bottom: 18px;
}

.alert-error   { background: #FEF1F0; color: var(--danger);  border: 1px solid #FBD5D3; }
.alert-success { background: #EFFBF1; color: #1F8B37;        border: 1px solid #C6EFD0; }
.alert-warn    { background: #FFF9E8; color: #9A6B00;        border: 1px solid #FFE9B0; }

/* ── 底部链接 ─────────────────────────────── */
.footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 22px;
}

.footer a {
    color: var(--brand);
    text-decoration: none;
    margin: 0 4px;
}

.footer a:hover { text-decoration: underline; }

.divider { color: var(--border); margin: 0 6px; }

/* ── 登录后的首页 ─────────────────────────── */
.dashboard { max-width: 620px; text-align: left; }

.avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #5BC8F5 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; font-weight: 600;
    margin: 0 auto 16px;
}

.info-grid {
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.info-row .k { color: var(--text-muted); }
.info-row .v { color: var(--text); font-weight: 500; }

.badge {
    display: inline-block;
    padding: 2px 9px;
    font-size: 12px;
    border-radius: 20px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge.staff { background: #EEF0FF; color: #5560D6; }
