:root {
  --ink: #eef4ff;
  --muted: #8d9ab2;
  --line: rgba(255,255,255,.11);
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --green: #34d399;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #050a14; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(91,33,182,.26), transparent 34rem),
    radial-gradient(circle at 83% 72%, rgba(37,99,235,.18), transparent 32rem),
    linear-gradient(145deg, #050a14 0%, #07101f 52%, #050a14 100%);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(rgba(148,163,184,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.shell { position: relative; width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 10%; padding: 110px 0 80px; }
.brand { position: absolute; top: 34px; left: 0; display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-size: 20px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, var(--violet), var(--blue)); box-shadow: 0 12px 35px rgba(99,102,241,.28); }
.brand-mark svg { width: 19px; fill: none; stroke: white; stroke-width: 2.2; stroke-linejoin: round; }
.story { padding: 30px 0; animation: rise .7s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #b9c3d5; font-size: 13px; letter-spacing: .14em; }
.eyebrow span { width: 27px; height: 1px; background: var(--green); box-shadow: 0 0 12px var(--green); }
.story h1 { max-width: 650px; margin: 27px 0 24px; font-size: clamp(43px, 5vw, 70px); line-height: 1.08; letter-spacing: -.055em; }
.story h1 em { font-style: normal; color: transparent; background: linear-gradient(105deg, #c4b5fd 0%, #60a5fa 54%, #34d399 100%); background-clip: text; -webkit-background-clip: text; }
.story > p { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.trust-list { margin-top: 48px; max-width: 520px; border-top: 1px solid var(--line); }
.trust-list div { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); color: #c8d1e1; }
.trust-list b { color: #66748c; font-size: 12px; letter-spacing: .08em; }
.login-card { position: relative; padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(15,23,42,.88), rgba(8,14,27,.76)); box-shadow: 0 35px 100px rgba(0,0,0,.45); backdrop-filter: blur(20px); animation: rise .7s .12s ease-out both; overflow: hidden; }
.login-card::before { content: ""; position: absolute; inset: 0 auto auto 10%; width: 80%; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,.75), transparent); }
.card-head { display: flex; align-items: center; gap: 8px; color: #8fa0b8; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.login-card h2 { margin: 30px 0 8px; font-size: 32px; letter-spacing: -.04em; }
.intro { margin: 0 0 31px; color: var(--muted); font-size: 14px; line-height: 1.7; }
label { display: block; margin: 18px 0 9px; color: #dce4f1; font-size: 13px; font-weight: 650; }
.password-label { display: flex; align-items: end; justify-content: space-between; }
.password-label span { padding-bottom: 9px; color: #66748c; font-size: 11px; }
input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(148,163,184,.19); border-radius: 12px; outline: 0; background: rgba(2,6,23,.48); color: white; font: inherit; transition: border .2s, box-shadow .2s, background .2s; }
input::placeholder { color: #56637a; }
input:focus { border-color: rgba(139,92,246,.8); background: rgba(2,6,23,.7); box-shadow: 0 0 0 4px rgba(139,92,246,.1); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-wrap button { position: absolute; right: 7px; top: 7px; height: 38px; padding: 0 10px; border: 0; background: transparent; color: #9ba9bd; cursor: pointer; }
.message { min-height: 21px; margin: 15px 0 10px; color: #8290a8; font-size: 12px; line-height: 1.6; }
.message.error { color: #fda4af; }
.message.ok { color: #6ee7b7; }
.submit { width: 100%; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; border-radius: 12px; color: white; background: linear-gradient(110deg, #7c3aed, #2563eb); box-shadow: 0 14px 34px rgba(79,70,229,.25); font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s, filter .2s; }
.submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.submit:disabled { cursor: wait; opacity: .65; transform: none; }
.security-note { display: flex; gap: 10px; margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); color: #718097; font-size: 11px; line-height: 1.6; }
.security-note svg { flex: 0 0 auto; width: 16px; fill: none; stroke: #718097; stroke-width: 1.7; }
footer { position: absolute; bottom: 28px; left: 0; color: #4e5b70; font-size: 11px; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 36px; padding: 115px 0 85px; }
  .story { padding: 0; }
  .story h1 { font-size: clamp(40px, 12vw, 58px); }
  .trust-list { display: none; }
  .login-card { padding: 28px 22px; }
  footer { position: static; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
