/* 站点用户登录/注册弹窗（遗漏页、守号中心等共用） */
.site-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}

.site-auth-overlay.open {
    display: flex;
}

.site-auth-modal {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    color: #1e293b;
}

.site-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.site-auth-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.site-auth-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.site-auth-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.site-auth-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
}

.site-auth-tab {
    flex: 1;
    min-height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.site-auth-tab.active {
    background: linear-gradient(135deg, #0891b2, #2563eb);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.site-auth-body {
    padding: 14px 16px 16px;
}

.site-auth-form {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.site-auth-form.active {
    display: flex;
}

.site-auth-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    color: #64748b;
}

.site-auth-field input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.site-auth-field input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.site-auth-code-row {
    display: flex;
    gap: 8px;
}

.site-auth-code-row input {
    flex: 1;
    min-width: 0;
}

.site-auth-send-code {
    flex-shrink: 0;
    min-width: 108px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #0891b2;
    border-radius: 8px;
    background: #fff;
    color: #0891b2;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.site-auth-send-code:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.site-auth-submit {
    min-height: 42px;
    margin-top: 4px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.site-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-auth-msg {
    min-height: 18px;
    font-size: 0.78rem;
    color: #ef4444;
    text-align: center;
}

.site-auth-msg.is-ok {
    color: #16a34a;
}

.site-auth-switch {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

.site-auth-switch button {
    border: none;
    background: none;
    color: #0891b2;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.site-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.site-auth-divider::before,
.site-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.site-auth-wx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 8px;
    background: #07c160;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.site-auth-wx:hover {
    background: #06ad56;
    color: #fff;
}

.site-auth-hint {
    margin: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
}

.omission-page .watch-login-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
