:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-300: #fdba74;
  --radius-xl: 40px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top, rgba(249, 115, 22, 0.14), transparent 26%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

::selection {
  background: var(--orange-500);
  color: var(--slate-900);
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(100%, 400px);
  min-height: 760px;
  display: flex;
  flex-direction: column;
  background: var(--slate-900);
  border: 4px solid var(--slate-800);
  border-radius: 40px;
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.7),
    0 0 0 1px rgba(249, 115, 22, 0.08);
}

.auth-tape {
  height: 12px;
  width: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 10px,
      rgba(0, 0, 0, 0.18) 10px,
      rgba(0, 0, 0, 0.18) 20px
    ),
    var(--orange-500);
}

.auth-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 16px;
}

.auth-home-link {
  color: var(--slate-400);
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 18px;
}

.auth-home-link:hover {
  color: var(--orange-300);
}

.auth-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 28px;
}

.auth-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--orange-500);
  color: var(--slate-900);
  box-shadow:
    0 0 28px rgba(249, 115, 22, 0.22),
    inset 0 0 0 2px rgba(251, 146, 60, 0.55);
}

.auth-brand-mark::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: rgba(249, 115, 22, 0.14);
  filter: blur(18px);
  z-index: -1;
}

.auth-brand-mark svg {
  width: 34px;
  height: 34px;
}

.auth-brand h1 {
  margin: 18px 0 6px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.auth-eyebrow {
  color: var(--slate-400);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 2px solid var(--slate-800);
  background: var(--slate-950);
  margin-bottom: 22px;
}

.auth-tab {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--slate-500);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.auth-tab.is-active {
  background: var(--slate-800);
  border-color: var(--slate-700);
  color: var(--white);
}

.auth-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.auth-status.is-error {
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(249, 115, 22, 0.28);
}

.auth-status.is-success {
  background: rgba(21, 128, 61, 0.22);
  border-color: rgba(74, 222, 128, 0.2);
}

.hidden {
  display: none !important;
}

.auth-form {
  display: grid;
  gap: 18px;
  flex: 1;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  padding-left: 2px;
  color: var(--slate-400);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap-icon input {
  padding-left: 50px;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--slate-500);
  pointer-events: none;
}

.auth-input-icon svg {
  width: 18px;
  height: 18px;
}

.auth-input-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 2px solid var(--slate-800);
  background: var(--slate-950);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  outline: none;
}

.auth-input-wrap input::placeholder {
  color: var(--slate-600);
}

.auth-input-wrap input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.auth-note {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(30, 41, 59, 0.92);
}

.auth-note-icon {
  color: var(--orange-500);
  flex: 0 0 auto;
}

.auth-note-icon svg {
  width: 18px;
  height: 18px;
}

.auth-note p {
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  min-height: 66px;
  margin-top: auto;
  border: 0;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--orange-500);
  color: var(--slate-900);
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.24);
}

.auth-submit:hover {
  background: var(--orange-400);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.34);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-submit-arrow {
  font-size: 1.4rem;
  line-height: 1;
}

.auth-footer {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  display: grid;
  gap: 10px;
}

.auth-footer p {
  color: var(--slate-400);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.auth-footer-link {
  color: var(--orange-400);
  text-decoration: none;
  font-weight: 900;
}

.auth-bottom-bar {
  padding: 12px 0 18px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(51, 65, 85, 0.36);
}

.auth-bottom-bar::before {
  content: "";
  width: 34%;
  height: 6px;
  border-radius: 999px;
  background: var(--slate-700);
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 8px;
  }

  .auth-card {
    min-height: calc(100vh - 16px);
    border-radius: 30px;
  }

  .auth-content {
    padding: 18px 18px 14px;
  }

  .auth-brand h1 {
    font-size: 2.7rem;
  }
}
