*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #eef2f9;
    --bg-2: #e3ebf8;
    --card: #ffffff;
    --text: #1b2430;
    --muted: #6b7686;
    --line: #e3e9f2;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --error-bg: #fef3f2;
    --error-line: #fbd5d0;
    --error-text: #b42318;
    --ok-bg: #f0fdf4;
    --ok-line: #bbf0cd;
    --ok-text: #15803d;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 50% -10%, var(--bg-2), var(--bg));
    -webkit-font-smoothing: antialiased;
}

.page {
    width: 100%;
    max-width: 420px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #46536a;
}

.brand-mark {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
}

.card {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    padding: 30px 28px 26px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -18px rgba(16, 24, 40, .22);
}

.card-title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.card-sub {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

.field {
    display: block;
    margin-bottom: 15px;
}

.field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #3b4759;
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-radius: 11px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.field input::placeholder {
    color: #9aa5b6;
}

.field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, .14);
}

.hint {
    margin: -7px 0 16px;
    font-size: 12px;
    color: var(--muted);
}

.btn {
    width: 100%;
    height: 45px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 11px;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: #fff;
    color: #3b4759;
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: #f6f8fc;
    border-color: #cfd8e6;
}

.alert {
    margin-bottom: 16px;
    padding: 11px 13px;
    font-size: 13.5px;
    line-height: 1.55;
    border-radius: 10px;
    border: 1px solid transparent;
}

.alert-error {
    color: var(--error-text);
    background: var(--error-bg);
    border-color: var(--error-line);
}

.alert-ok {
    color: var(--ok-text);
    background: var(--ok-bg);
    border-color: var(--ok-line);
}

.switch {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

.switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

.foot {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
    color: #98a3b3;
}

/* 首页 */
.profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.avatar {
    flex: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8);
}

.avatar svg {
    width: 26px;
    height: 26px;
}

.profile-name {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    word-break: break-all;
}

.profile-mail {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
    word-break: break-all;
}

.rows {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5fa;
}

.rows li:last-child {
    border-bottom: none;
}

.rows .label {
    color: var(--muted);
}

.rows .value {
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.logout-form {
    margin-top: 18px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf0cd;
    border-radius: 999px;
}

.tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

@media (max-width: 480px) {
    .card {
        padding: 24px 20px 22px;
        border-radius: 16px;
    }
}

/* 首页 */
a.brand {
    text-decoration: none;
    color: inherit;
}

.page-wide {
    max-width: 560px;
}

.tag-idle {
    color: #46536a;
    background: #f1f5fb;
    border-color: #e2e9f4;
}

.tag-idle::before {
    background: #94a3b8;
}

.hero-title {
    margin: 2px 0 10px;
    font-size: 25px;
    line-height: 1.36;
    font-weight: 680;
    letter-spacing: -.02em;
}

.hero-sub {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.actions {
    display: grid;
    gap: 10px;
}

a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.actions .btn {
    margin-top: 0;
}

.features {
    margin: 26px 0 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
}

.features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-dot {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.features b {
    display: block;
    margin-bottom: 3px;
    font-size: 13.5px;
    font-weight: 650;
}

.features div span {
    font-size: 12.8px;
    line-height: 1.6;
    color: var(--muted);
}
