/* ═══════════════════════════════════════════════════════
   Auth Pages — 登录 / 注册 样式
   ═══════════════════════════════════════════════════════ */

/* Auth pages use centered narrow layout */
.auth-page .content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    max-width: 460px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.auth-card .auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
}

.auth-card h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

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

.auth-card .auth-subtitle .reset-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

.auth-card .form-group:last-of-type {
    margin-bottom: 24px;
}

.auth-card .btn[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-card .auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}
.auth-card .auth-footer a:hover {
    color: var(--primary-hover);
}

/* ── 协议勾选框 ── */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Verify code row */
.auth-card .form-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-card .form-row input {
    flex: 1;
}

.auth-card .form-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Password Strength Indicator ── */
.password-strength {
    margin-top: 8px;
}
.pw-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}
.pw-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}
.pw-text {
    font-size: 12px;
    font-weight: 500;
}
/* strength levels */
.pw-weak .pw-bar-fill { width: 25%; background: #ef4444; }
.pw-weak .pw-text { color: #ef4444; }
.pw-fair .pw-bar-fill { width: 50%; background: #f97316; }
.pw-fair .pw-text { color: #f97316; }
.pw-good .pw-bar-fill { width: 75%; background: #eab308; }
.pw-good .pw-text { color: #eab308; }
.pw-strong .pw-bar-fill { width: 100%; background: #22c55e; }
.pw-strong .pw-text { color: #22c55e; }

/* 登录/注册页隐藏顶栏菜单和按钮 */
.navbar-links,
.navbar-right {
    display: none;
}

/* ── Settings list (profile page) ── */
.setting-list {
    margin: 0 -24px -24px;
}
.setting-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--text);
    border-top: 1px solid var(--border);
    transition: background 0.15s;
}
.setting-row:hover {
    background: var(--bg);
}
.setting-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}
.setting-row-danger .setting-icon {
    background: #fef2f2;
    color: #ef4444;
}
.setting-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.setting-row-danger .setting-label {
    color: #ef4444;
}
.setting-arrow {
    font-size: 15px;
    color: #cbd5e1;
    flex-shrink: 0;
}

/* ── Confirm prompt (GitHub style, remove account) ── */
.confirm-prompt {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}
.confirm-prompt strong {
    color: var(--text);
    background: var(--surface-hover);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    user-select: none;
}
.confirm-prompt strong.text-danger {
    color: #dc2626;
    background: #fef2f2;
}

/* ── Risk modal (remove account) ── */
.risk-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ef4444;
}
.risk-modal-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.risk-modal-body ul {
    margin: 8px 0 0;
    padding-left: 18px;
}
.risk-modal-body li {
    margin-bottom: 4px;
}
.risk-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 16px;
    font-size: 13px;
    color: #991b1b;
    transition: background var(--transition-fast);
}
.risk-checkbox:hover {
    background: #fee2e2;
}
.risk-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ef4444;
    flex-shrink: 0;
}

/* ── Danger alert (remove account) ── */
.danger-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
}
.danger-alert > i {
    font-size: 22px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}
.danger-alert strong {
    display: block;
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 4px;
}
.danger-alert p {
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page .content {
        padding: 20px 16px;
        min-height: calc(100vh - 80px);
    }
    .auth-card {
        padding: 28px 20px;
    }
}
