
.login-page {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.login-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-form {
    padding: 2.5rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    background: #f8f9fa;
    border: none;
    color: #6c757d;
}

.form-control {
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: none;
}

.password-toggle {
    background: #f8f9fa;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.login-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.login-footer a:hover {
    color: white;
    text-decoration: underline;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.register-link {
    color: #6c757d;
    font-size: 0.875rem;
}

.register-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-btn:hover {
    color: #764ba2;
    text-decoration: underline;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #dc3545; width: 25%; }
.strength-fair { background: #fd7e14; width: 50%; }
.strength-good { background: #ffc107; width: 75%; }
.strength-strong { background: #198754; width: 100%; }

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .login-form-container {
        background: #2d3748;
        color: #e2e8f0;
    }

    .form-title {
        color: #e2e8f0;
    }

    .form-subtitle {
        color: #a0aec0;
    }

    .form-label {
        color: #e2e8f0;
    }

    .input-group {
        border-color: #4a5568;
        background: #2d3748;
    }

    .input-group-text {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .form-control {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .form-control::placeholder {
        color: #a0aec0;
    }
}