/* auth.css — Login/Register shared styles */
body {
    background: var(--bg-body) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding-top: 0 !important;
}
.login-card,
.register-card {
    background: var(--bg-card) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border) !important;
    max-width: 420px;
    width: 100%;
}
.login-logo,
.register-logo {
    text-align: center;
    margin-bottom: 20px;
}
.logo-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-md);
}
.logo-wrapper i {
    font-size: 2rem;
    color: var(--bg-card);
}
.login-title,
.register-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-heading) !important;
    margin-bottom: 4px;
}
.login-subtitle,
.register-subtitle {
    text-align: center;
    color: var(--text-muted) !important;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
/* Tab 切换 */
.tab-bar {
    display: flex;
    margin-bottom: 22px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary);
}
.tab-bar a {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--bg-card);
    color: var(--primary);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}
.tab-bar a.active {
    background: var(--primary);
    color: #fff;
}
.tab-bar a:hover:not(.active) {
    background: rgba(59, 130, 246, 0.08);
}
.form-group {
    margin-bottom: 18px;
}
.input-group-modern {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: all 0.2s ease;
}
.input-group-modern:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}
.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1rem;
}
.form-control-modern {
    flex: 1;
    padding: 12px 16px 12px 0;
    font-size: 0.95rem;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: var(--text-body) !important;
    box-shadow: none !important;
}
.form-control-modern::placeholder { color: var(--text-muted); }
.login-btn,
.register-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: var(--bg-card) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}
.login-btn:hover,
.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.login-footer a,
.register-footer a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 0.9rem;
}
.login-footer a:hover,
.register-footer a:hover { color: var(--primary) !important; }
.alert-msg {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.9rem;
    text-align: center;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.shape { display: none !important; }
