/* 登录页面 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-content {
    padding: 40px; 
    max-width: 450px; 
}

.close-modal:hover {
    color: #f8fafc;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: #94a3b8;
    font-size: 1rem;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s;
}

/* 增强按钮样式特异性 */
.auth-buttons .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.auth-buttons .btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.auth-buttons .btn-outline.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-buttons .btn-outline:hover {
    background: #2563eb;
    color: white;
}

.auth-buttons .btn-primary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
}

.auth-buttons .btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group label {
    color: #e2e8f0;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #94a3b8;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.form-footer a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-left: 5px;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #64748b;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #334155, transparent);
}

.form-divider span {
    padding: 0 15px;
}

.terms {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 15px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.google {
    background: #DB4437;
}

.github {
    background: #333;
}

.microsoft {
    background: #0078d7;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.close-modal:hover {
    color: #f8fafc;
}

#registerForm .form-group:last-child {
    margin-bottom: 10px;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-options a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s;
}

.form-options a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.login-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.signup-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.signup-link a:hover {
    text-decoration: underline;
}