:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #0f172a;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at 85% 25%, #45101c50, transparent 50%);
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.welcome-header,
main,
.welcome-footer {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid #334155;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
}
.brand-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #dc2626;
  font-size: 26px;
}
.brand small {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 8px;
  letter-spacing: 0.13em;
}
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
  color: #cbd5e1;
}
.header-link span {
  margin-left: 10px;
  color: #fbbf24;
}
.header-link:hover {
  color: #fbbf24;
}
.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: 72px;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.7;
  color: #fca5a5;
}
h1 {
  font-size: clamp(46px, 6.5vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 0 0 24px;
}
h1 span {
  color: #fbbf24;
}
.intro-copy {
  max-width: 470px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 24px;
  padding: 0;
  margin: 0;
}
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-icon {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  border-top: 2px solid #dc2626;
  padding-top: 7px;
}
.highlights h2 {
  font-size: 14px;
  margin: 6px 0 8px;
}
.highlights p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
}
.intro-note {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
  margin: 36px 0 0;
}
.intro-note span {
  color: #fbbf24;
  margin-right: 7px;
}
.auth-card {
  border: 1px solid #475569;
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(145deg, #45101c50, #0f172a 50%);
  box-shadow: 0 24px 80px #02061750;
  scroll-margin-top: 24px;
}
.auth-card .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.auth-card h2 {
  font-size: 27px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.muted {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.auth-tabs {
  display: flex;
  padding: 5px;
  gap: 4px;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #02061770;
  margin-block: 26px;
}
.auth-tabs button {
  min-height: 44px;
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 11px 4px;
  color: #cbd5e1;
  font-size: 13px;
}
.auth-tabs [aria-selected="true"] {
  color: #fff;
  background: #334155;
  box-shadow: 0 2px 8px #02061750;
}
form label {
  display: block;
  font-size: 13px;
  margin: 20px 0 9px;
  font-weight: 600;
}
form input {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #475569;
  border-radius: 10px;
  background: #02061790;
  color: #f8fafc;
  padding: 12px 14px;
}
form input::placeholder {
  color: #94a3b8;
}
.password-toggle {
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #475569;
  border-radius: 8px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 13px;
}
.password-toggle[aria-pressed="true"] {
  color: #fbbf24;
  border-color: #fbbf24;
}
.field-hint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 9px 0 0;
}
.form-error {
  color: #fda4af;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.form-error:empty,
#auth-status:empty {
  display: none;
}
.primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 13px;
  background: #dc2626;
  border: 1px solid #ef4444;
  color: white;
  border-radius: 10px;
  font-weight: 700;
}
.primary-button:hover:not(:disabled) {
  background: #b91c1c;
}
.auth-note {
  border-top: 1px solid #334155;
  padding-top: 20px;
  margin: 24px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.8;
}
.welcome-footer {
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  font-size: 11px;
  line-height: 1.7;
  color: #94a3b8;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #0f172a;
  z-index: 1;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-width: 820px) {
  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 40px;
  }
  .intro-copy {
    max-width: 600px;
  }
  .auth-card {
    width: 100%;
    max-width: 520px;
    justify-self: center;
  }
}
@media (max-width: 480px) {
  .welcome-header,
  main,
  .welcome-footer {
    width: calc(100% - 32px);
  }
  .welcome-header {
    padding-block: 20px;
  }
  .header-link {
    display: inline-flex;
  }
  .welcome-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .auth-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .welcome-footer {
    flex-direction: column;
    gap: 8px;
  }
}
