:root {
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #05070a;
  color: #f7f9fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #05070a; }
button, input { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(44px, 7vw, 92px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(29, 155, 240, .35), transparent 34rem),
    radial-gradient(circle at 80% 80%, rgba(96, 71, 255, .20), transparent 30rem),
    #0a1018;
}

.brand-panel::after {
  position: absolute;
  right: -16rem;
  bottom: -20rem;
  width: 46rem;
  height: 46rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, .018), 0 0 0 10rem rgba(255, 255, 255, .012);
  content: "";
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: #f7f9fb;
  color: #06090d;
  font-size: 25px;
  font-weight: 900;
}

.brand-content {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(44px, 7vw, 92px);
  left: clamp(44px, 7vw, 92px);
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #55b7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-panel h1 {
  margin: 0 0 24px;
  font-size: clamp(56px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -.065em;
}

.brand-copy {
  max-width: 620px;
  color: #9babbd;
  font-size: 17px;
  line-height: 1.75;
}

.login-panel { display: grid; place-items: center; padding: 36px; background: #05070a; }
.login-card { width: min(100%, 440px); }
.mobile-brand { display: none; }
.login-card h2 { margin: 0 0 10px; font-size: 40px; letter-spacing: -.045em; }
.intro { margin: 0 0 34px; color: #8e9aab; line-height: 1.6; }

.login-card label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.login-card input {
  width: 100%;
  margin-bottom: 20px;
  padding: 15px 16px;
  border: 1px solid #283240;
  border-radius: 13px;
  outline: none;
  background: #10151d;
  color: #f7f9fb;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-card input:focus { border-color: #1d9bf0; box-shadow: 0 0 0 3px rgba(29, 155, 240, .16); }
.login-card button {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 999px;
  background: #f7f9fb;
  color: #05070a;
  font-weight: 850;
  cursor: pointer;
}
.login-card button:disabled { cursor: wait; opacity: .55; }
.login-error { min-height: 22px; margin: -4px 2px 14px; color: #ff7b86; font-size: 13px; }
.message-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.message-card { width: min(100%, 520px); padding: 38px; border: 1px solid #283240; border-radius: 24px; background: #10151d; }
.message-card h1 { margin: 22px 0 12px; font-size: 38px; }
.message-card p:not(.eyebrow) { color: #9babbd; line-height: 1.7; }
.message-card a { display: inline-block; margin-top: 14px; padding: 12px 20px; border-radius: 999px; background: #f7f9fb; color: #05070a; font-weight: 850; text-decoration: none; }

@media (max-width: 860px) {
  .login-shell { display: block; padding: 22px; background: radial-gradient(circle at 50% 0, rgba(29, 155, 240, .19), transparent 28rem), #05070a; }
  .brand-panel { display: none; }
  .login-panel { min-height: calc(100vh - 44px); padding: 26px; border: 1px solid #202a37; border-radius: 24px; background: rgba(12, 17, 24, .94); }
  .mobile-brand { display: block; margin: 0 0 42px; color: #55b7ff; font-size: 13px; font-weight: 850; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
