:root {
  --auth-ink: #10213d;
  --auth-muted: #68758a;
  --auth-line: #dce3ec;
  --auth-blue: #3767f0;
  --auth-blue-dark: #264fc7;
  --auth-green: #50d1a0;
}

* { box-sizing: border-box; }

body.auth-page {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(55, 103, 240, .12), transparent 29rem),
    #f5f7fb;
}

.auth-page a { color: inherit; }

.auth-brand {
  position: fixed;
  z-index: 2;
  top: 28px;
  left: 38px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(480px, 1.08fr);
}

.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(80px, 10vw, 150px) clamp(38px, 6vw, 88px) clamp(48px, 7vw, 90px);
  color: #fff;
  background: linear-gradient(145deg, #0c1d3d 0%, #15345f 56%, #1e5a72 100%);
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-story::before {
  width: 430px;
  height: 430px;
  top: -190px;
  right: -160px;
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .025);
}

.auth-story::after {
  width: 230px;
  height: 230px;
  right: 9%;
  bottom: 7%;
  background: rgba(80, 209, 160, .10);
  filter: blur(2px);
}

.auth-story-content { position: relative; z-index: 1; max-width: 560px; }

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #8ce8c3;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }

.auth-story h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.45rem, 4.5vw, 4.65rem);
  line-height: .99;
  letter-spacing: -.055em;
}

.auth-story-copy {
  max-width: 510px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, .72);
  font-size: 1.02rem;
  line-height: 1.7;
}

.auth-proof { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-proof span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .06);
  font-size: .79rem;
  font-weight: 650;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(28px, 7vw, 110px);
}

.auth-card { width: min(100%, 470px); }
.auth-eyebrow { margin: 0 0 10px; color: var(--auth-blue); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-card h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.auth-intro { margin: 13px 0 31px; color: var(--auth-muted); line-height: 1.6; }

.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: .82rem; font-weight: 750; color: #2a3951; }
.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  outline: none;
  color: var(--auth-ink);
  background: #fff;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-field input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 4px rgba(55, 103, 240, .11); }
.field-help { color: #7a879a; font-size: .75rem; line-height: 1.5; }
.field-help ul { margin: 3px 0 0; padding-left: 18px; }

.errorlist {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  list-style: none;
  color: #9f2734;
  background: #fff0f2;
  font-size: .78rem;
  line-height: 1.45;
}

.auth-submit {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--auth-blue);
  box-shadow: 0 12px 24px rgba(55, 103, 240, .20);
  font: 750 .92rem/1 Inter, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-submit:hover { transform: translateY(-1px); background: var(--auth-blue-dark); box-shadow: 0 15px 30px rgba(55, 103, 240, .25); }
.auth-submit:focus-visible, .auth-link:focus-visible, .auth-brand:focus-visible { outline: 3px solid rgba(80, 209, 160, .55); outline-offset: 3px; }

.auth-meta { display: flex; justify-content: space-between; gap: 18px; margin-top: 23px; color: var(--auth-muted); font-size: .82rem; }
.auth-meta-centered { justify-content: center; }
.auth-link { color: var(--auth-blue) !important; font-weight: 750; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-status-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 14px; color: #126143; background: #ddf7ed; font-size: 1.2rem; font-weight: 800; }
.auth-status-icon-warning { color: #8a4e08; background: #fff0d8; }
.auth-notice { padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 10px; color: #5f6e82; background: #fff; font-size: .8rem; line-height: 1.55; }
.auth-actions { display: grid; justify-items: start; gap: 18px; margin-top: 26px; }
.auth-button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 10px; color: #fff !important; background: var(--auth-blue); box-shadow: 0 12px 24px rgba(55, 103, 240, .2); font-size: .9rem; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.auth-button-link:hover { transform: translateY(-1px); background: var(--auth-blue-dark); }
.auth-button-link:focus-visible { outline: 3px solid rgba(80, 209, 160, .55); outline-offset: 3px; }

@media (max-width: 840px) {
  .auth-brand { position: absolute; top: 24px; left: 26px; color: var(--auth-ink); }
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; padding: 92px 24px 48px; }
}

@media (max-width: 460px) {
  .auth-meta { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .auth-card h2 { font-size: 2rem; }
}
