/* 通用登录/注册弹窗样式 */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: authFadeIn 0.2s ease;
}
.auth-modal-overlay.show { display: flex; }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 28px 28px 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: authSlideUp 0.25s ease;
}
@keyframes authSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.auth-modal-close {
    position: absolute;
    top: 8px; right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.auth-modal-close:hover { background: #f1f5f9; color: #475569; }

.auth-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    text-align: center;
}

.auth-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.auth-modal-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.auth-modal-tab:hover { color: #3b82f6; }
.auth-modal-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 500;
}

.auth-modal-error {
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
}

.auth-form-group {
    margin-bottom: 14px;
}
.auth-form-group label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}
.auth-form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-send-code-btn {
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #1565c0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.auth-send-code-btn:hover { background: #bbdefb; }
.auth-send-code-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-forgot-row {
    text-align: right;
    margin-bottom: 16px;
}
.auth-forgot-row a {
    font-size: 13px;
    color: #1565c0;
    text-decoration: none;
}
.auth-forgot-row a:hover { text-decoration: underline; }

.auth-modal-submit {
    width: 100%;
    padding: 11px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.auth-modal-submit:hover { background: #2563eb; }
.auth-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
