@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap');

:root {
  --auth-bg: #f1f4f5;
  --auth-surface: #ffffff;
  --auth-border: rgba(166, 179, 193, 0.34);
  --auth-ink: #1f2937;
  --auth-muted: #7a8698;
  --auth-primary: #f4b000;
  --auth-primary-dark: #d89a00;
  --auth-shadow: 0 30px 60px rgba(27, 43, 69, 0.14);
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Mulish", "Segoe UI", sans-serif;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(244, 176, 0, 0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(24, 199, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #f7fafb 0%, var(--auth-bg) 100%);
}

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

.auth-wrap {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 440px);
  gap: 28px;
  align-items: stretch;
}

.auth-showcase,
.auth-card {
  border: 1px solid var(--auth-border);
  border-radius: 32px;
  background: var(--auth-surface);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(14px);
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-showcase::before,
.auth-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(244, 176, 0, 0.08);
}

.auth-showcase::before {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -70px;
}

.auth-showcase::after {
  width: 200px;
  height: 200px;
  left: -40px;
  bottom: -70px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.auth-brand img {
  height: 48px;
  width: auto;
}

.auth-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.auth-brand span {
  display: block;
  color: var(--auth-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 176, 0, 0.1);
  color: var(--auth-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-showcase h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-showcase p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 540px;
  color: #556273;
  font-size: 1rem;
  line-height: 1.65;
}

.auth-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.auth-highlight {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(188, 197, 208, 0.26);
}

.auth-highlight strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 800;
}

.auth-highlight span {
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-card {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-card-head h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-card-head p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-link {
  color: var(--auth-primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--auth-primary-dark);
}

.auth-alert {
  margin-bottom: 18px;
  border: 0;
  border-left: 4px solid #ef4444;
  border-radius: 16px;
}

.auth-stepper {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-step {
  flex: 1;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--auth-border);
  background: #f8fbfc;
}

.auth-step small {
  display: block;
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-step strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
}

.auth-step.is-active {
  border-color: rgba(244, 176, 0, 0.28);
  background: rgba(244, 176, 0, 0.1);
}

.auth-grid {
  display: grid;
  gap: 16px;
}

.auth-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field label,
.auth-fieldset legend {
  display: block;
  margin-bottom: 8px;
  font-size: 0.87rem;
  font-weight: 800;
  color: #445162;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(185, 194, 205, 0.5);
  border-radius: 16px;
  background: #fff;
  color: var(--auth-ink);
  font-size: 0.96rem;
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(244, 176, 0, 0.48);
  box-shadow: 0 0 0 0.2rem rgba(244, 176, 0, 0.12);
  outline: 0;
}

.auth-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

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

.auth-choice {
  position: relative;
}

.auth-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.auth-choice span {
  display: block;
  padding: 16px;
  border: 1px solid rgba(185, 194, 205, 0.5);
  border-radius: 18px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-choice small {
  display: block;
  margin-top: 4px;
  color: var(--auth-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-choice input:checked + span {
  border-color: rgba(244, 176, 0, 0.38);
  background: rgba(244, 176, 0, 0.08);
  color: var(--auth-primary-dark);
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #f4b000 0%, #d89a00 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(244, 176, 0, 0.26);
}

.auth-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.auth-btn-secondary {
  background: #edf2f6;
  color: #536173;
}

.auth-btn-secondary:hover {
  background: #e3ebf2;
  color: #2a3442;
}

.auth-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.auth-dev-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(166, 179, 193, 0.26);
}

.auth-dev-title {
  margin-bottom: 12px;
  color: #445162;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-dev-grid {
  display: grid;
  gap: 10px;
}

.auth-dev-user {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(244, 176, 0, 0.18);
  border-radius: 18px;
  background: rgba(244, 176, 0, 0.06);
  color: var(--auth-ink);
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.auth-dev-user:hover {
  border-color: rgba(244, 176, 0, 0.34);
  background: rgba(244, 176, 0, 0.1);
  transform: translateY(-1px);
}

.auth-dev-user strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 800;
}

.auth-dev-user span {
  display: block;
  color: var(--auth-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    padding: 30px 26px;
  }
}

@media (max-width: 640px) {
  .auth-card,
  .auth-showcase {
    border-radius: 24px;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-highlights,
  .auth-grid.two,
  .auth-choice-group,
  .auth-actions,
  .auth-stepper {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
