* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: #f8fafc;
}

/* 主容器 */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧品牌区域 */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo svg {
    width: 48px;
    height: 48px;
}

.brand-content h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 15px;
}

.feature-icon {
    font-size: 20px;
}

/* 装饰圆圈 */
.brand-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
}

/* 右侧表单区域 */
.form-section {
    width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 360px;
}

.form-wrapper h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 32px;
}

/* 错误提示 */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #fecaca;
}

/* 输入组 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    background: #f9fafb;
}

.input-wrapper input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.login-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.login-btn:hover svg {
    transform: translateX(4px);
}

/* 底部链接 */
.footer-link {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #64748b;
}

.footer-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.footer-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .brand-section {
        display: none;
    }
    
    .form-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 24px;
    }
    
    .form-wrapper h2 {
        font-size: 24px;
    }
}

/* 用户协议 */
.agreement-group {
    margin: 16px 0;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.agreement-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.agreement-label a {
    color: #3b82f6;
    text-decoration: none;
}

.agreement-label a:hover {
    text-decoration: underline;
}
