/* ==========================================================================
   登录页、首页、错误页、支付跳转页
   ========================================================================== */

.auth-body { display: flex; min-height: 100vh; }
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 32px 16px; }

.auth-card {
    width: min(420px, 100%);
    padding: 32px 30px 26px;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand > div { display: flex; flex-direction: column; }
.auth-brand strong { font-size: 16px; }
.auth-role { font-size: 12px; font-weight: 600; color: var(--primary-600); }
.auth-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { color: var(--text-2); margin: 6px 0 22px; }
.auth-form .btn-block { margin-top: 6px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 13px; }
.auth-switch a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 500; }

.brand-mark {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px var(--primary-ring);
}
.brand-logo { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: #fff; }
.brand-mark-lg, .brand-logo-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 28px; }

/* ---------- 首页 ---------- */
.home { width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.home-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.home-brand h1 { font-size: 28px; letter-spacing: -.02em; }
.home-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 24px;
    border-radius: 22px;
    transition: transform .15s, box-shadow .15s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-card strong { font-size: 18px; margin-top: 8px; }
.home-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.home-icon .icon { width: 24px; height: 24px; }
.tone-admin { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.tone-agent { background: linear-gradient(135deg, #0d9488, #0891b2); }
.home-go { position: absolute; right: 22px; top: 26px; color: var(--text-3); }

/* ---------- 错误页 / 支付页 ---------- */
.error-card, .pay-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.error-code {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pay-card .home-icon { margin-bottom: 16px; }
.pay-card form { width: 100%; }

@media (max-width: 560px) {
    .home-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 26px 20px 22px; }
}
