* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --purple: #7B2D8E;
    --purple-dark: #5A1E6C;
    --purple-light: #A855C7;
    --purple-bg: #F3E8F9;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh; display: flex;
}

/* 左侧车辆展示区 */
.login-left {
    flex: 1; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--purple-light) 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 60px; color: #fff;
}
.login-left::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.login-left .brand {
    position: relative; z-index: 2; text-align: center; max-width: 480px;
}
.login-left .brand .logo-wrap {
    width: 100px; height: 100px; border-radius: 24px; overflow: hidden;
    margin: 0 auto 24px; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
}
.login-left .brand .logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.login-left .brand h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.login-left .brand p { font-size: 15px; opacity: 0.85; line-height: 1.6; }
.login-left .vehicle-img {
    position: relative; z-index: 2; margin-top: 40px; max-width: 500px; width: 100%;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-left .vehicle-img img { width: 100%; display: block; }
.login-left .deco-circle {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.login-left .deco-circle.c1 { width: 300px; height: 300px; top: -80px; right: -80px; }
.login-left .deco-circle.c2 { width: 200px; height: 200px; bottom: -60px; left: -60px; }
.login-left .deco-circle.c3 { width: 150px; height: 150px; top: 40%; left: 10%; }

/* 右侧登录区 */
.login-right {
    width: 480px; min-width: 380px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 60px 48px;
    background: #fff; position: relative;
}
.login-right .login-card { width: 100%; max-width: 360px; }
.login-right .login-card h2 { font-size: 22px; color: #1e293b; margin-bottom: 6px; }
.login-right .login-card .subtitle { color: #94a3b8; font-size: 13px; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 12px 14px 12px 42px;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none;
    transition: all 0.2s; background: #f8fafc;
}
.form-group input:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 3px rgba(123,45,142,0.1); }
.form-group .icon {
    position: absolute; left: 14px; top: 36px; width: 18px; height: 18px; opacity: 0.4;
}

.login-btn {
    width: 100%; padding: 13px; border-radius: 10px; border: none;
    cursor: pointer; font-size: 15px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    transition: all 0.2s; letter-spacing: 2px; margin-top: 8px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(123,45,142,0.35); }
.login-btn:active { transform: translateY(0); }

.error-msg {
    background: #fef2f2; color: #dc2626; font-size: 13px;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 16px;
    border: 1px solid #fecaca; display: none;
}

.login-footer {
    margin-top: 40px; text-align: center; color: #94a3b8; font-size: 12px;
}

/* 响应式 */
@media (max-width: 860px) {
    body { flex-direction: column; }
    .login-left { min-height: 200px; padding: 24px 16px; }
    .login-left .vehicle-img { display: none; }
    .login-left .brand h1 { font-size: 20px; }
    .login-left .brand p { font-size: 13px; }
    .login-right { width: 100%; min-width: unset; padding: 32px 20px; }
    .login-card { max-width: 100%; }
}
@media (max-width: 400px) {
    .login-left { min-height: 160px; padding: 16px; }
    .login-left .brand h1 { font-size: 18px; }
}
