:root {
  --rt-auth-bg: #07111f;
  --rt-auth-panel: rgba(13, 27, 46, .88);
  --rt-auth-panel-solid: #0d1b2e;
  --rt-auth-border: rgba(148, 163, 184, .18);
  --rt-auth-text: #f8fafc;
  --rt-auth-muted: #9fb0c6;
  --rt-auth-primary: #4f7cff;
  --rt-auth-primary-hover: #6b91ff;
  --rt-auth-danger: #ff758d;
  --rt-auth-focus: rgba(79, 124, 255, .28);
}

.rt-auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--rt-auth-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 124, 255, .20), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(141, 92, 246, .16), transparent 30%),
    linear-gradient(145deg, #050b14, var(--rt-auth-bg) 56%, #09182a);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.rt-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .20;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.rt-skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--rt-auth-primary);
}

.rt-skip-link:focus { top: 16px; }

.rt-auth-header,
.rt-auth-footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rt-auth-header { min-height: 84px; }

.rt-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rt-auth-text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.5px;
}

.rt-auth-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--rt-auth-primary), #8b5cf6);
  box-shadow: 0 10px 28px rgba(79, 124, 255, .28);
}

.rt-auth-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rt-auth-muted);
  font-size: 14px;
}

.rt-auth-header-link {
  padding: 9px 14px;
  border: 1px solid var(--rt-auth-border);
  border-radius: 12px;
  color: var(--rt-auth-text);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,.04);
}

.rt-auth-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.rt-auth-story h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: .99;
  letter-spacing: -3px;
}

.rt-auth-story > p {
  max-width: 650px;
  margin: 0;
  color: var(--rt-auth-muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}

.rt-auth-eyebrow,
.rt-auth-kicker {
  color: #8eabff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.8px;
}

.rt-auth-feature-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rt-auth-feature-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--rt-auth-border);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}

.rt-auth-feature-grid strong,
.rt-auth-feature-grid span { display: block; }
.rt-auth-feature-grid strong { margin-bottom: 8px; }
.rt-auth-feature-grid span { color: var(--rt-auth-muted); font-size: 13px; line-height: 1.45; }

.rt-auth-panel { width: 100%; }

.rt-auth-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--rt-auth-border);
  border-radius: 28px;
  background: var(--rt-auth-panel);
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(22px);
}

.rt-auth-card-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -1.4px;
}

.rt-auth-card-heading p,
.rt-auth-help,
.rt-auth-terms,
.rt-auth-switch,
.rt-auth-form-meta { color: var(--rt-auth-muted); }

.rt-auth-card-heading p { margin: 0; line-height: 1.55; }
.rt-auth-form { margin-top: 28px; }
.rt-auth-field { margin-bottom: 19px; }
.rt-auth-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.rt-auth-control { position: relative; }

.rt-auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 15px;
  border: 1px solid var(--rt-auth-border);
  border-radius: 14px;
  outline: none;
  color: var(--rt-auth-text);
  background: rgba(3, 10, 20, .56);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rt-auth-input:focus {
  border-color: var(--rt-auth-primary);
  box-shadow: 0 0 0 4px var(--rt-auth-focus);
  background: rgba(3, 10, 20, .78);
}

.rt-auth-input::placeholder { color: #71839a; }
.rt-auth-field.has-error .rt-auth-input { border-color: var(--rt-auth-danger); }

.rt-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  padding: 7px;
  color: #a9bbd2;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.rt-auth-help,
.rt-auth-error,
.rt-auth-terms,
.rt-auth-form-meta { margin: 7px 2px 0; font-size: 12px; line-height: 1.45; }
.rt-auth-error { color: var(--rt-auth-danger); }

.rt-auth-alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255,117,141,.32);
  border-radius: 14px;
  color: #ffd7df;
  background: rgba(255,117,141,.09);
}
.rt-auth-alert p { margin: 0; }

.rt-auth-form-meta { display: flex; justify-content: flex-end; }

.rt-auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--rt-auth-primary), #6b62f6);
  box-shadow: 0 16px 34px rgba(79,124,255,.25);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform .18s ease, filter .18s ease;
}

.rt-auth-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.rt-auth-submit:active { transform: translateY(0); }
.rt-auth-submit:focus-visible,
.rt-auth-header-link:focus-visible,
.rt-password-toggle:focus-visible,
.rt-auth-brand:focus-visible,
.rt-auth-switch a:focus-visible { outline: 3px solid var(--rt-auth-focus); outline-offset: 3px; }

.rt-auth-switch { margin: 22px 0 0; text-align: center; font-size: 14px; }
.rt-auth-switch a { color: #9fb6ff; font-weight: 800; }
.rt-auth-footer { min-height: 52px; color: #73849b; font-size: 12px; }

@media (max-width: 900px) {
  .rt-auth-shell { grid-template-columns: 1fr; max-width: 620px; padding-top: 16px; }
  .rt-auth-story { text-align: center; }
  .rt-auth-story h1 { margin-left: auto; margin-right: auto; }
  .rt-auth-story > p { margin-left: auto; margin-right: auto; }
  .rt-auth-feature-grid { text-align: left; }
}

@media (max-width: 600px) {
  .rt-auth-header,
  .rt-auth-footer,
  .rt-auth-shell { width: min(100% - 24px, 1180px); }
  .rt-auth-header { min-height: 70px; }
  .rt-auth-nav span { display: none; }
  .rt-auth-story h1 { font-size: 42px; letter-spacing: -2px; }
  .rt-auth-feature-grid { grid-template-columns: 1fr; }
  .rt-auth-feature-grid article { min-height: auto; }
  .rt-auth-card { padding: 24px 18px; border-radius: 22px; }
  .rt-auth-shell { gap: 34px; }
  .rt-auth-footer { padding: 12px 0 20px; }
}

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