/* ============================================================
   登录页独立设计 - 深蓝渐变 + 玻璃拟态
   ============================================================ */
* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    background: linear-gradient(135deg, #08162c 0%, #0d2344 35%, #1a4a86 70%, #14508f 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 背景光效 */
body::before, body::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
body::before {
    width: 520px; height: 520px; top: -180px; left: -140px;
    background: radial-gradient(circle, #2563eb, transparent 70%);
}
body::after {
    width: 460px; height: 460px; bottom: -160px; right: -120px;
    background: radial-gradient(circle, #22d3ee, transparent 70%);
}
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}

.login-wrap {
    position: relative; z-index: 2;
    width: 100%; max-width: 940px;
    display: grid; grid-template-columns: 1.05fr .95fr;
    background: rgba(255,255,255,.97);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(4, 16, 34, .45);
}

/* 左侧品牌区 */
.login-side {
    position: relative;
    padding: 46px 42px;
    color: #eaf2fb;
    background: linear-gradient(160deg, #0d2344 0%, #133a6b 55%, #1b4b8f 100%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.login-side::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(56,189,248,.25), transparent 55%),
                radial-gradient(circle at 85% 90%, rgba(34,211,238,.16), transparent 50%);
}
.login-side > * { position: relative; z-index: 1; }
.login-side .brand { display: flex; align-items: center; gap: 12px; }
.login-side .brand .logo {
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    box-shadow: 0 8px 20px rgba(37,99,235,.5);
}
.login-side .brand h1 { font-size: 19px; font-weight: 700; margin: 0; color: #fff; }
.login-side .brand span { font-size: 11.5px; letter-spacing: 1.4px; color: rgba(234,242,251,.6); text-transform: uppercase; }

.login-side .slogan h2 { font-size: 25px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; color: #fff; }
.login-side .slogan p { font-size: 13.5px; line-height: 1.8; color: rgba(234,242,251,.75); margin: 0; }

.feat-list { list-style: none; padding: 0; margin: 26px 0 0; }
.feat-list li {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 0; font-size: 13.5px; color: rgba(234,242,251,.85);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.feat-list li:last-child { border-bottom: 0; }
.feat-list li i {
    width: 26px; height: 26px; flex: none; border-radius: 8px;
    background: rgba(56,189,248,.16); color: #7dd3fc;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.login-side .ver { font-size: 11.5px; color: rgba(234,242,251,.4); }

/* 右侧表单区 */
.login-main { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-main h3 { font-size: 21px; font-weight: 700; color: #0d2344; margin: 0 0 6px; }
.login-main .sub { font-size: 13px; color: #7a8aa0; margin-bottom: 26px; }

.form-floating > label { font-size: 13px; color: #7a8aa0; }
.form-control {
    border-radius: 11px; border: 1px solid #dde5f0;
    padding: 13px 14px; font-size: 14px; height: auto;
}
.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.input-group .input-group-text {
    border-radius: 11px; background: transparent; border-color: #dde5f0; color: #7a8aa0;
}

.btn-login {
    width: 100%; height: 46px; border: 0; border-radius: 11px;
    background: linear-gradient(135deg, #1b4b8f, #2563eb);
    color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 8px 22px rgba(27,75,143,.35);
    transition: .2s;
}
.btn-login:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(27,75,143,.45); }
.btn-login:active { transform: translateY(0); }

.alert-login { border-radius: 11px; font-size: 13px; border: 0; padding: 11px 14px; }
.alert-danger-login { background: #fdecec; color: #b52d2d; }
.alert-success-login { background: #e7f8ef; color: #0f7a48; }

.login-foot {
    margin-top: 22px; text-align: center; font-size: 12px; color: #a3b0c2;
}
.login-foot a { color: #2563eb; }

@media (max-width: 860px) {
    .login-wrap { grid-template-columns: 1fr; max-width: 440px; }
    .login-side { padding: 32px 28px; }
    .login-side .slogan h2 { font-size: 20px; }
    .login-main { padding: 32px 28px; }
}
@media (max-width: 520px) {
    .feat-list { display: none; }
}
