* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --brand: #3970c2; --text: #1d2433; --text-2: #5a6377; --card: rgba(255,255,255,.92); --line: #dfe5ef; --input: #f4f6fb; }
[data-theme="night"] { --brand: #12c6ec; --text: #e3f4f8; --text-2: #9dbac6; --card: rgba(9,24,40,.9); --line: #1f3d55; --input: rgba(18,40,60,.9); }
html, body { height: 100%; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; color: var(--text); }
body { overflow: hidden; background: #0a1626; }
.login-bg { position: fixed; inset: 0; }
.login-bg .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.9); transform: scale(1.04); transition: opacity .6s; }
.login-bg .night { opacity: 0; }
[data-theme="night"] .login-bg .night { opacity: 1; } [data-theme="night"] .login-bg .day { opacity: 0; }
.login-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,40,80,.35), rgba(10,20,40,.15)); }
.login-wrap { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
[data-theme="night"] .login-card { box-shadow: 0 0 40px -10px rgba(18,198,236,.45); }
.lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lg-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; }
[data-theme="night"] .lg-logo { color: #032530; }
.lg-brand b { font-size: 22px; letter-spacing: 2px; display: block; }
.lg-brand small { font-size: 13px; color: var(--text-2); }
h1 { font-size: 18px; margin-bottom: 16px; }
.lg-field { display: flex; align-items: center; gap: 10px; height: 50px; border: 1px solid var(--line); background: var(--input); border-radius: 12px; padding: 0 14px; margin-bottom: 12px; }
.lg-field:focus-within { border-color: var(--brand); }
.lg-field i { color: var(--text-2); width: 16px; }
.lg-field input { flex: 1; border: none; background: transparent; outline: none; font-size: 16px; color: var(--text); min-width: 0; }
.lg-eye { border: none; background: none; cursor: pointer; color: var(--text-2); }
.lg-err { background: rgba(217,45,32,.1); color: #d92d20; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
[data-theme="night"] .lg-err { color: #f97066; }
.lg-btn { width: 100%; height: 50px; border: none; border-radius: 12px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; letter-spacing: 2px; }
[data-theme="night"] .lg-btn { color: #032530; }
.lg-btn:disabled { opacity: .6; }
.lg-tip { margin-top: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
