:root {
  color-scheme: dark;
  --login-bg: #080d16;
  --login-panel: #101827;
  --login-panel-soft: #141f31;
  --login-border: rgba(148, 163, 184, .17);
  --login-text: #f8fafc;
  --login-muted: #9aa8bc;
  --login-blue: #2584ff;
  --login-cyan: #22d3ee;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  color: var(--login-text);
  background:
    radial-gradient(ellipse at 18% 5%, rgba(37, 132, 255, .17), transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(34, 211, 238, .08), transparent 32%),
    var(--login-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  min-height: min(760px, calc(100vh - 64px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  overflow: hidden;
  border: 1px solid var(--login-border);
  border-radius: 28px;
  background: rgba(12, 19, 31, .88);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .45);
}
.visual {
  position: relative;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  overflow: hidden;
  padding: 34px 42px;
  border-right: 1px solid var(--login-border);
  background: linear-gradient(145deg, rgba(19, 40, 68, .78), rgba(9, 14, 24, .4));
}
.visual::before, .visual::after {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(96, 165, 250, .13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.visual::before { top: 21%; left: -180px; box-shadow: 0 0 0 36px rgba(96,165,250,.025), 0 0 0 72px rgba(96,165,250,.02); }
.visual::after { right: -230px; bottom: -170px; width: 480px; height: 480px; }
.brand, .mobile-brand { position: relative; z-index: 1; display: inline-flex; width: fit-content; align-items: center; }
.brand img, .mobile-brand img { display: block; width: 176px; height: auto; object-fit: contain; }
.visual-copy { position: relative; z-index: 1; max-width: 470px; margin-top: 92px; }
.eyebrow { color: #79baff; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.visual-copy h1 { margin: 18px 0 16px; font-size: clamp(38px, 5vw, 62px); line-height: 1.03; letter-spacing: -.055em; }
.visual-copy h1 span { color: #6bb8ff; }
.visual-copy p { max-width: 420px; color: var(--login-muted); font-size: 15px; line-height: 1.8; }
.art { position: relative; z-index: 1; min-height: 245px; margin-top: auto; }
.card { position: absolute; padding: 20px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 18px; background: linear-gradient(145deg, rgba(24, 37, 56, .96), rgba(12, 19, 31, .96)); box-shadow: 0 24px 65px rgba(0,0,0,.35); }
.card.main { top: 4px; left: 8px; width: min(340px, 78%); min-height: 190px; transform: rotate(-4deg); }
.card.small { right: 0; bottom: 5px; width: 205px; transform: rotate(5deg); }
.dots { display: flex; gap: 6px; margin-bottom: 25px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #46546a; }
.caption { color: var(--login-muted); font-size: 12px; }
.metric { margin: 10px 0 18px; font-size: 22px; font-weight: 700; }
.bar { width: 72%; height: 7px; margin-top: 9px; border-radius: 99px; background: #26364c; }
.bar.blue { width: 88%; background: linear-gradient(90deg, var(--login-blue), var(--login-cyan)); box-shadow: 0 0 18px rgba(37,132,255,.28); }
.visual > .caption { position: relative; z-index: 1; margin-top: 14px; }
.form-side { display: flex; align-items: center; justify-content: center; padding: 54px clamp(30px, 5vw, 76px); }
.auth { width: 100%; max-width: 420px; }
.mobile-brand { display: none; margin-bottom: 38px; }
.auth h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.04em; }
.sub { margin: 0 0 30px; color: var(--login-muted); font-size: 14px; line-height: 1.7; }
.notice { margin: 0 0 22px; padding: 13px 15px; border: 1px solid rgba(37,132,255,.25); border-radius: 12px; background: rgba(37,132,255,.08); color: #b9d9ff; font-size: 12px; line-height: 1.6; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 8px; color: #d2dbea; font-size: 12px; font-weight: 650; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--login-border); border-radius: 11px; outline: none; background: rgba(7, 13, 22, .78); color: var(--login-text); font: inherit; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #69788e; }
.field input:focus { border-color: #3993ff; box-shadow: 0 0 0 3px rgba(37,132,255,.14); }
.primary { width: 100%; min-height: 49px; margin-top: 5px; border: 0; border-radius: 11px; background: linear-gradient(100deg, #1977f3, #21a6f3); color: white; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; box-shadow: 0 10px 28px rgba(25,119,243,.2); transition: transform .18s, filter .18s; }
.primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary:disabled { cursor: wait; opacity: .65; transform: none; }
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 22px 0; }
.oauth a { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--login-border); border-radius: 11px; background: rgba(255,255,255,.035); color: #edf3fc; font-size: 13px; font-weight: 650; text-decoration: none; transition: border-color .18s, background .18s; }
.oauth a:hover { border-color: rgba(96,165,250,.55); background: rgba(96,165,250,.08); }
.oauth svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #8290a4; font-size: 11px; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--login-border); content: ""; }
.error { min-height: 20px; margin: 9px 0 0; color: #fca5a5; font-size: 12px; line-height: 1.5; }
.switch { margin: 24px 0 0; color: var(--login-muted); font-size: 13px; text-align: center; }
.switch button { padding: 0; border: 0; background: transparent; color: #75b8ff; font: inherit; font-weight: 700; cursor: pointer; }
.legal { margin: 30px 0 12px; color: #748197; font-size: 11px; line-height: 1.6; text-align: center; }
.back { display: block; color: #a9b6c8; font-size: 12px; text-align: center; text-decoration: none; }
.back:hover { color: white; }

@media (max-width: 820px) {
  .shell { width: min(560px, calc(100% - 28px)); min-height: auto; margin: 14px auto; grid-template-columns: 1fr; border-radius: 22px; }
  .visual { display: none; }
  .form-side { min-height: calc(100vh - 28px); padding: 38px clamp(22px, 7vw, 42px); }
  .mobile-brand { display: inline-flex; }
}
@media (max-width: 420px) {
  .shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .form-side { min-height: 100vh; padding: 30px 22px; }
  .auth h2 { font-size: 28px; }
  .oauth { gap: 8px; }
}
