.auth-page {
  min-height: 100vh;
  overflow: hidden;
  background: #020617;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 2.5rem 1rem;
}

.auth-bg,
.auth-bg::after {
  position: absolute;
  inset: 0;
}

.auth-bg {
  background: linear-gradient(135deg, #0f172a 0%, #14532d 48%, #0f766e 100%);
}

.auth-bg::after {
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 0.18), transparent 28%),
    radial-gradient(circle at 84% 18%, rgb(250 204 21 / 0.16), transparent 24%),
    radial-gradient(circle at 54% 82%, rgb(20 184 166 / 0.18), transparent 30%);
}

.auth-card {
  position: relative;
  display: grid;
  width: min(100%, 72rem);
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 80px rgb(2 6 23 / 0.38);
}

.auth-brand-panel {
  display: none;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  background: #0f172a;
  color: #fff;
}

.auth-brand-link,
.auth-mobile-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.auth-logo-badge {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgb(2 6 23 / 0.2);
}

.auth-logo-badge img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.auth-brand-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-brand-location {
  display: block;
  color: #d1fae5;
  font-size: 0.875rem;
}

.auth-hero {
  max-width: 28rem;
  margin-top: 6rem;
}

.auth-overline {
  color: #a16207;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-brand-panel .auth-overline {
  color: #fde68a;
}

.auth-hero h1 {
  margin: 1.25rem 0 0;
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1.12;
}

.auth-hero p {
  margin: 1.25rem 0 0;
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.75;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  font-size: 0.875rem;
}

.auth-step {
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  padding: 1rem;
}

.auth-step strong {
  display: block;
  font-size: 1.5rem;
}

.auth-step span {
  display: block;
  margin-top: 0.25rem;
  color: #e2e8f0;
}

.auth-form-panel {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 2rem 1.5rem;
  background: #fff;
}

.auth-mobile-header {
  margin-bottom: 2.5rem;
}

.auth-mobile-header img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.auth-message {
  margin-bottom: 0.75rem;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  padding: 0.75rem 1rem;
  color: #78350f;
  font-size: 0.875rem;
}

.auth-content {
  margin: auto 0;
}

.auth-card-form {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.auth-card-form h1 {
  margin: 0.75rem 0 0;
  color: #020617;
  font-size: 1.875rem;
  font-weight: 750;
  line-height: 1.2;
}

.auth-subtitle {
  margin: 0.75rem 0 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.65;
}

.auth-card-form form {
  margin-top: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 650;
}

.auth-form input:not([type='checkbox']):not([type='radio']),
.auth-form select,
.auth-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.75rem 0.875rem;
  color: #0f172a;
  font: inherit;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input:not([type='checkbox']):not([type='radio']):focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.16), 0 1px 2px rgb(15 23 42 / 0.04);
  outline: none;
}

.auth-form input[type='checkbox'],
.auth-form input[type='radio'] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  accent-color: #047857;
  vertical-align: -0.125rem;
}

.auth-field-has-error input:not([type='checkbox']):not([type='radio']),
.auth-field-has-error select,
.auth-field-has-error textarea {
  border-color: #fca5a5;
  background: #fffafa;
}

.auth-help-text {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.5;
}

.auth-help-text ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  color: #64748b;
  list-style: disc;
}

.auth-help-text li {
  margin-top: 0.25rem;
}

.auth-field-error,
.auth-error,
.auth-error .errorlist,
.auth-form .errorlist {
  color: #dc2626;
}

.auth-form .errorlist {
  margin: 0.5rem 0 0;
  padding-left: 0;
  color: #dc2626;
  font-size: 0.875rem;
  list-style: none;
}

.auth-card-form button[type='submit'] {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  border: 0;
  border-radius: 8px;
  background: #047857;
  padding: 0.8rem 1rem;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 24px rgb(6 78 59 / 0.18);
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.auth-card-form button[type='submit']:hover {
  background: #065f46;
  box-shadow: 0 16px 28px rgb(6 78 59 / 0.22);
  transform: translateY(-1px);
}

.auth-card-form button[type='submit']:focus {
  outline: 3px solid rgb(16 185 129 / 0.28);
  outline-offset: 2px;
}

.auth-alt-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.auth-alt-links a,
.auth-inline-link {
  color: #047857;
  font-weight: 650;
  text-decoration: none;
}

.auth-alt-links a:hover,
.auth-inline-link:hover {
  color: #064e3b;
}

@media (min-width: 640px) {
  .auth-shell {
    padding-inline: 1.5rem;
  }

  .auth-form-panel {
    padding-inline: 2.5rem;
  }

  .auth-alt-links {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .auth-card {
    grid-template-columns: 1fr 440px;
  }

  .auth-brand-panel {
    display: flex;
  }

  .auth-mobile-header {
    display: none;
  }
}
