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

body {
    background-color: #f8fafc;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    min-height: 500px;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #fffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #4a5568;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #e2e8f0;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 24px, rgba(66, 153, 225, 0.09) 24px, rgba(66, 153, 225, 0.03) 25px, transparent 25px),
        linear-gradient(transparent 24px, rgba(66, 153, 225, 0.03) 24px, rgba(66, 153, 225, 0.03) 25px, transparent 25px);
    background-size: 26px 26px;
}

.login-image {
    width: 120px;
    height: 120px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(66, 153, 225, 0.2);
}

.login-image::before {
    content: '🔒';
    font-size: 50px;
    opacity: 0.8;
}

.login-left h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: #2d3748;
}

.login-left p {
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    max-width: 280px;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    margin-bottom: 35px;
}

.login-title h1 {
    font-size: 1.6rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-title p {
    color: #718096;
    font-size: 0.9rem;
}

.error-message {
    background: #fff5f5;
    color: #e53e3e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    border: 1px solid #fed7d7;
    text-align: center;
}

.error-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.security-info {
    background: #ebf8ff;
    color: #2c5282;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    border: 1px solid #bee3f8;
    text-align: center;
}

.security-info i {
    margin-right: 5px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background-color: #f7fafc;
    color: #4299e1;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.toggle-icon {
    width: 20px;
    height: 20px;
}

.login-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: #3182ce;
}

.login-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.8rem;
}

.security-footer {
    margin-top: 15px;
    font-size: 0.7rem;
    color: #a0aec0;
    text-align: center;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 400px;
    }
    
    .login-left {
        padding: 30px 20px;
        min-height: 180px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .login-image {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .login-image::before {
        font-size: 35px;
    }
    
    .login-left h2 {
        font-size: 1.3rem;
    }
    
    .login-right {
        padding: 35px 25px;
    }
}
