   :root {
    --primary: #2B6CB0;
    --primary-hover: #2C5282;
    --glass: rgba(255, 255, 255, 0.95);
    --text: #2D3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slogan {
    position: absolute;
    top: 60px;
    left: 100px;
    color: #fff;
    font-size: 24px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bg-blur {
    position: absolute;
    width: 120%;
    height: 120%;
    background: url('/static/images/login_bg.jpeg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(0px) brightness(0.8);
    z-index: 0;
}

.login-container {
    width: 90%;
        max-width: 377px;
    padding: 2rem;
    background: var(--glass);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-5%);
    transition: transform 0.3s ease;
}

.logo {
    width: 280px;
    margin: 0 auto 1.8rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-switch {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.auth-tab {
    flex: 1;
    padding: 0.9rem;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(43, 108, 176, 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 5px rgba(43, 108, 176, 0.2);
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.input-field {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(43, 108, 176, 0.3);
}

.helper-links {
    display: flex;
    justify-content: space-between;
    margin: 1.2rem 0;
}

.helper-links a {
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.helper-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.social-login {
    margin: 1.5rem 0;
    text-align: center;
}

.social-title {
    color: #718096;
    font-size: 13px;
    margin-bottom: 1.2rem;
    position: relative;
}

.social-title::before,
.social-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #E2E8F0;
}

.social-title::before {
    left: 0;
}

.social-title::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.legal-text {
    text-align: center;
    color: #718096;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.legal-text a {
    color: var(--primary);
    text-decoration: none;
}

/* 验证码相关样式 */
.code-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.send-code-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 0.8rem;
    font-size: 13px;
    background: rgba(43, 108, 176, 0.1);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-code-btn:hover {
    background: rgba(43, 108, 176, 0.2);
}

.send-code-btn.disabled {
    background: #E2E8F0;
    color: #718096;
    cursor: not-allowed;
}

/* 错误提示样式 */
.error-field {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.error {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-container {
        padding: 1.2rem;
        max-width: 320px;
        transform: translateY(-3%);
    }
    
    .slogan {
        top: 40px;
        left: 80px;
        font-size: 20px;
    }
    
    .logo {
        width: 190px;
        margin-bottom: 1.4rem;
    }
    
    .auth-tab {
        padding: 0.7rem;
        font-size: 13px;
    }
    
    .input-field {
        height: 44px;
        font-size: 13px;
    }
    
    .submit-btn {
        height: 44px;
        font-size: 13px;
    }
    
    .helper-links a {
        font-size: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
}

    /* 表单切换动画 */
    .auth-form {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .auth-form.active {
        display: block;
        opacity: 1;
    }
    .register-title{
         margin-bottom: 20px;
         text-align: center;
    }
   .terms-check{
       margin-bottom: 1.2rem;
   }