body {
    background: linear-gradient(135deg, #0078D4 0%, #8764B8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', 'Microsoft YaHei', '微软雅黑', Tahoma, Geneva, Verdana, sans-serif;
}
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}
.login-header {
    background: linear-gradient(135deg, #0078D4 0%, #8764B8 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}
.login-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}
.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}
.login-body {
    padding: 2rem;
}
.form-floating {
    margin-bottom: 1rem;
}
.form-floating input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.form-floating input:focus {
    border-color: #0078D4;
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
}
.btn-login {
    background: linear-gradient(135deg, #0078D4 0%, #8764B8 100%);
    border: none;
    border-radius: 4px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.167s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 100%;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.3);
}
.btn-register {
    background: transparent;
    border: 2px solid #0078D4;
    color: #0078D4;
    border-radius: 4px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.167s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 100%;
}
.btn-register:hover {
    background: #0078D4;
    color: white;
    transform: translateY(-1px);
}
.alert {
    border-radius: 10px;
    border: none;
}
.form-check-input:checked {
    background-color: #0078D4;
    border-color: #0078D4;
}
.loading {
    display: none;
}
.loading.show {
    display: inline-block;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
.footer-text {
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}
.footer-text a {
    color: #0078D4;
    text-decoration: none;
}
.footer-text a:hover {
    text-decoration: underline;
}
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
}
.password-toggle:hover {
    color: #0078D4;
}
.password-field {
    position: relative;
}
/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .login-container {
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
    
    .form-floating input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-floating label {
        font-size: 0.9rem;
    }
    
    .btn-login,
    .btn-register {
        min-height: 48px;
        font-size: 1rem;
        padding: 0.75rem;
    }
    
