:root {
  --bg: #0b0f19;
  --surface: #121826;
  --surface-2: #182033;
  --surface-3: #1a2235;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-border: rgba(249, 115, 22, 0.3);
  --success-soft: rgba(34, 197, 94, 0.14);
  --success-border: rgba(34, 197, 94, 0.28);
  --danger-soft: rgba(239, 68, 68, 0.16);
  --danger-border: rgba(239, 68, 68, 0.28);
  --shadow-lg: 0 28px 70px rgba(2, 6, 23, 0.34);
  --shadow-md: 0 18px 42px rgba(2, 6, 23, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #0b0f19 0%, #0a0e17 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
button {
  font: inherit;
}

.auth-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 30px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.auth-layout-wide {
  grid-template-columns: 340px minmax(0, 1fr);
}

.auth-sidebar-card,
.auth-card {
  height: 100%;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(18, 24, 38, 0.96);
  box-shadow: var(--shadow-lg);
}

.auth-sidebar-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--accent-border);
  color: #fdba74;
  font-size: 13px;
  font-weight: 700;
}

.auth-brand,
.auth-sidebar-copy,
.auth-sidebar-points,
.auth-card-head,
.auth-panel-head {
  display: grid;
}

.auth-brand {
  gap: 10px;
}

.auth-brand h1,
.auth-card-head h3 {
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.04em;
}

.auth-brand h1 {
  font-size: 2rem;
  line-height: 1;
}

.auth-brand p,
.auth-sidebar-copy p,
.auth-card-head p,
.auth-panel-head span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-sidebar-copy {
  gap: 10px;
}

.auth-sidebar-copy h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.auth-sidebar-points {
  gap: 10px;
}

.auth-point {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(26, 34, 53, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.auth-point strong {
  color: var(--heading);
}

.auth-point span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.auth-main {
  min-width: 0;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.auth-card-wide {
  gap: 20px;
}

.auth-card-head {
  gap: 10px;
}

.auth-card-label {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: #fdba74;
  font-size: 13px;
  font-weight: 700;
}

.auth-card-head h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.05;
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 21, 36, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px;
  background-image:
    linear-gradient(45deg, transparent 50%, #cfd7e7 50%),
    linear-gradient(135deg, #cfd7e7 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px rgba(15, 21, 36, 0.94) inset;
  transition: background-color 9999s ease-in-out 0s;
}

option {
  color: var(--text);
  background: rgba(15, 21, 36, 0.98);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--accent);
  color: #fff7ed;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

button:hover {
  filter: brightness(1.04);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.n {
  padding: 13px 14px;
  border-radius: 16px;
}

.ok {
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: #bbf7d0;
}

.err {
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: #fecaca;
}

.auth-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.auth-panel-head {
  gap: 6px;
}

.auth-panel-head strong {
  color: var(--heading);
}

.auth-card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .auth-layout,
  .auth-layout-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    width: min(100% - 20px, 1440px);
    padding: 16px 0 22px;
  }

  .auth-sidebar-card,
  .auth-card {
    padding: 20px;
    border-radius: 22px;
  }

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

  .auth-sidebar-copy h2 {
    font-size: 1.35rem;
  }

  .auth-card-head h3 {
    font-size: 1.85rem;
  }

  .auth-panels {
    grid-template-columns: 1fr;
  }

  .auth-card-footer,
  .ghost-link {
    width: 100%;
  }
}
