* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    width: 900px;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 左侧品牌区域 */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand-header {
    position: relative;
    z-index: 1;
}

.brand-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    font-size: 36px;
    opacity: 0.9;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.brand-welcome {
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.brand-welcome h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.brand-welcome p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
}

/* 右侧表单区域 */
.login-form-wrapper {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h3 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
}

.toggle-password:hover {
    color: #4f46e5;
}

.form-options {
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
}


.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 20px;
    text-align: right;
}

.forgot-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #4f46e5;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .login-brand {
        padding: 32px 24px;
    }
    .login-form-wrapper {
        padding: 32px 24px;
    }
    .brand-welcome {
        margin-top: 24px;
    }
}
