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

html, body {
    height: 100%;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 左侧装饰区域 */
.login-left {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1e3a8a 0%, #312e81 25%, #4f46e5 55%, #6366f1 80%, #818cf8 100%);
}

.login-left .circle-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -150px;
    right: -150px;
}

.login-left .circle-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -80px;
    left: -80px;
}

.login-left .circle-3 {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    top: 25%;
    right: 20%;
}

.login-left .dot-grid {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 30px 30px;
}

.login-left .icon-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255,255,255,0.9);
}

.login-left .icon-area .icon-box {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.12);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.login-left .icon-area .divider-line {
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.login-left .icon-area .features {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.login-left .icon-area .feature-item {
    text-align: center;
}

.login-left .icon-area .feature-item i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.8;
}

.login-left .icon-area .feature-item span {
    font-size: 13px;
    opacity: 0.75;
    display: block;
}

/* 右侧登录区域 */
.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 40px 40px 24px;
}

.login-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-form-wrap .brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-form-wrap .brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.login-form-wrap .brand p {
    color: #94a3b8;
    font-size: 14px;
}

.login-form-wrap form {
    width: 100%;
}

.login-form-wrap .form-control {
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    transition: all 0.2s;
    width: 100%;
}

.login-form-wrap .form-control:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 验证码 */
.captcha-group {
    position: relative;
}

.captcha-group .form-control {
    padding-right: 158px;
}

.login-form-wrap .btn-primary {
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    transition: all 0.3s;
}

.login-form-wrap .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 底部备案（flex 推到底部，自然居中） */
.login-footer {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 8px;
    flex-shrink: 0;
}

.login-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.login-footer a:hover {
    color: #6366f1;
}

.login-footer .divider {
    margin: 0 8px;
    color: #cbd5e1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }
    .login-right {
        padding: 24px 24px 16px;
    }
    .login-form-wrap {
        max-width: 100%;
    }
}