:root {
  --bg: #061019;
  --bg-deep: #040b12;
  --panel: rgba(10, 24, 37, .86);
  --panel-solid: #0b1926;
  --panel-2: #0f2131;
  --line: rgba(128, 178, 215, .14);
  --line-strong: rgba(128, 205, 255, .25);
  --text: #edf8ff;
  --text-2: #c8d9e7;
  --muted: #7793a9;
  --cyan: #61defa;
  --cyan-soft: rgba(97, 222, 250, .12);
  --green: #48e19b;
  --green-soft: rgba(72, 225, 155, .12);
  --amber: #ffc864;
  --amber-soft: rgba(255, 200, 100, .12);
  --red: #ff6d7d;
  --red-soft: rgba(255, 109, 125, .12);
  --violet: #9d8cff;
  --blue: #6aa9ff;
  --sidebar: 236px;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-deep); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }

.login-body {
  background:
    linear-gradient(rgba(80, 145, 190, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 145, 190, .024) 1px, transparent 1px),
    radial-gradient(circle at 18% -10%, rgba(52, 156, 211, .16), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(92, 78, 197, .10), transparent 32%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); opacity: .08; pointer-events: none; z-index: 0; }
.ambient-a { background: var(--cyan); left: -180px; top: 6%; }
.ambient-b { background: var(--violet); right: -220px; bottom: -50px; }

/* Login */
.login-body { display: grid; place-items: center; padding: 28px; overflow-x: hidden; }
.login-shell { position: relative; z-index: 1; width: min(1050px, 100%); display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.login-brand h1 { margin: 15px 0 18px; font-size: clamp(46px, 6vw, 82px); letter-spacing: -.055em; line-height: .95; }
.login-brand p { max-width: 580px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.kicker, .eyebrow { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.brand-mark { width: 50px; height: 50px; display: grid; grid-auto-flow: column; place-content: center; align-items: center; gap: 2px; border: 1px solid rgba(97, 222, 250, .27); border-radius: 14px; color: var(--text); background: linear-gradient(145deg, rgba(97,222,250,.10), rgba(115,101,220,.08)); font-weight: 900; letter-spacing: -.08em; box-shadow: inset 0 0 22px rgba(97,222,250,.05), 0 0 30px rgba(97,222,250,.05); }
.brand-mark-large { width: 72px; height: 72px; border-radius: 21px; font-size: 21px; margin-bottom: 34px; }
.brand-slash { color: var(--cyan); opacity: .8; font-weight: 500; }
.login-flags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.flag { display: inline-flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; background: rgba(5,14,22,.45); }
.flag i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.flag-green { color: var(--green); border-color: rgba(72,225,155,.22); }
.flag-green i { background: var(--green); box-shadow: 0 0 12px var(--green); }
.login-card { padding: 30px; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(160deg, rgba(14,32,47,.95), rgba(8,20,31,.96)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025); }
.login-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.login-card h2 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.035em; }
.lock-orbit { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(97,222,250,.25); border-radius: 50%; color: var(--cyan); box-shadow: inset 0 0 18px rgba(97,222,250,.06); }
.field-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin: 16px 0 7px; }
input { width: 100%; min-width: 0; border: 1px solid var(--line); background: rgba(3,12,20,.7); color: var(--text); border-radius: 13px; padding: 13px 14px; outline: none; transition: .18s ease; }
input:focus { border-color: rgba(97,222,250,.55); box-shadow: 0 0 0 3px rgba(97,222,250,.08); }
.primary { border: 0; background: linear-gradient(135deg, #64def7, #79b8ff); color: #04111a; font-weight: 850; border-radius: 13px; padding: 13px 16px; box-shadow: 0 10px 30px rgba(91,203,242,.12); }
.wide { width: 100%; margin-top: 23px; }
.form-status { min-height: 18px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.form-status.error { color: var(--red); }
.form-status.success { color: var(--green); }
.login-foot { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); color: #5f7e95; font-size: 10px; line-height: 1.55; }


@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; gap: 30px; width: min(560px, 100%); }
  .login-brand { text-align: center; }
  .brand-mark-large { margin-left: auto; margin-right: auto; }
  .login-brand p { margin-left: auto; margin-right: auto; }
  .login-flags { justify-content: center; }
}
@media (max-width: 580px) {
  .login-body { padding: 18px 14px; place-items: start center; }
  .login-shell { padding-top: 8vh; }
  .login-brand h1 { font-size: 47px; }
  .login-brand p { font-size: 13px; }
  .login-card { padding: 22px; border-radius: 21px; }
}
