@font-face {
  font-family: Inter;
  src: url('/fonts/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #08080a;
  --panel: #121215;
  --panel-soft: #17171b;
  --line: #2a2a31;
  --text: #f5f5f7;
  --muted: #96969f;
  --accent: #8b5cf6;
  --danger: #ff6b78;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 92, 246, .14), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(74, 222, 128, .06), transparent 30%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

button, input { font: inherit; }

.login-shell {
  position: relative;
  width: min(980px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 15, 18, .96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.02) inset;
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(139,92,246,.17), transparent 45%),
    linear-gradient(160deg, #17171b, #101013);
}

.login-intro::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: 70px;
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(139,92,246,.04), 0 0 0 92px rgba(139,92,246,.025);
}

.brand, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
}

.brand-mark i { width: 3px; border-radius: 3px; background: #fff; }
.brand-mark i:nth-child(1) { height: 7px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 10px; opacity: .78; }

.intro-copy { position: relative; z-index: 1; max-width: 430px; }
.eyebrow { color: #aaaab4; font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.intro-copy h1 { max-width: 390px; margin: 16px 0 18px; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.intro-copy p { max-width: 420px; margin: 0; color: #a6a6af; font-size: 16px; line-height: 1.65; }

.security-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(9,9,11,.48);
}

.security-note b, .security-note small { display: block; }
.security-note b { font-size: 13px; margin-bottom: 4px; }
.security-note small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.lock-icon { position: relative; width: 34px; height: 34px; flex: none; border: 1px solid rgba(139,92,246,.3); border-radius: 10px; background: rgba(139,92,246,.11); }
.lock-icon::before { content: ""; display: block; width: 11px; height: 9px; margin: 13px auto 0; border: 2px solid #a78bfa; border-radius: 2px; }
.lock-icon::after { content: ""; position: absolute; top: 7px; left: 11px; width: 7px; height: 7px; border: 2px solid #a78bfa; border-bottom: 0; border-radius: 7px 7px 0 0; }

.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px; background: rgba(13,13,16,.84); }
.mobile-brand { display: none; }
.login-heading { margin-bottom: 34px; }
.login-heading h2 { margin: 12px 0 10px; font-size: 34px; line-height: 1.1; letter-spacing: -.04em; }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

form { display: grid; gap: 19px; }
label { display: grid; gap: 9px; color: #d9d9de; font-size: 12px; font-weight: 670; }
input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: var(--text);
  border: 1px solid #34343c;
  border-radius: 12px;
  outline: 0;
  background: #0e0e11;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder { color: #62626b; }
input:hover { border-color: #464650; }
input:focus { border-color: #8b5cf6; background: #111116; box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 88px; }
.password-field button { position: absolute; top: 6px; right: 7px; height: 38px; padding: 0 10px; color: #a7a7b0; border: 0; border-radius: 8px; background: transparent; font-size: 11px; font-weight: 680; cursor: pointer; }
.password-field button:hover { color: #fff; background: #202025; }

.login-error { padding: 12px 14px; color: #ffd4d8; border: 1px solid rgba(255,107,120,.3); border-radius: 11px; background: rgba(255,107,120,.09); font-size: 12px; line-height: 1.45; }
.login-button { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #101014; border: 0; border-radius: 12px; background: #f7f7f8; font-weight: 760; cursor: pointer; transition: transform .16s, background .16s, opacity .16s; }
.login-button:hover { transform: translateY(-1px); background: #fff; }
.login-button:active { transform: translateY(0); }
.login-button:disabled { cursor: wait; opacity: .65; transform: none; }
.login-button span:last-child { font-size: 20px; }
.login-footer { margin: 25px 0 0; color: #696971; font-size: 11px; line-height: 1.5; text-align: center; }

@media (max-width: 760px) {
  body { padding: 16px; }
  .login-shell { max-width: 460px; min-height: auto; grid-template-columns: 1fr; border-radius: 22px; }
  .login-intro { display: none; }
  .login-panel { padding: 34px 26px 30px; }
  .mobile-brand { display: flex; margin-bottom: 56px; }
  .login-heading h2 { font-size: 30px; }
}

@media (max-width: 390px) {
  body { padding: 0; background: #0d0d10; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .login-panel { padding-inline: 20px; }
}
