.auth-shell {
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(10, 9, 11, 0.64), rgba(10, 9, 11, 0.72)),
    radial-gradient(circle at 78% 78%, rgba(18, 118, 148, 0.24), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(255, 123, 35, 0.14), transparent 20%),
    linear-gradient(135deg, #090909, #181411 44%, #142328 100%);
}

.auth-shell::before,
.auth-shell::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  pointer-events: none;
}

.auth-shell::before {
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: 6rem;
  background: radial-gradient(circle, rgba(255, 137, 57, 0.12), rgba(255, 137, 57, 0));
}

.auth-shell::after {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(46, 133, 180, 0.16), rgba(46, 133, 180, 0));
}

.auth-frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.auth-topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 4.8rem;
  padding: 0.8rem 1rem 0.8rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.auth-logo {
  width: auto;
  height: 3.2rem;
  object-fit: contain;
}

.auth-topbar-action,
.auth-topbar-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  background: #ff6127;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.auth-topbar-meta {
  background: rgba(18, 52, 96, 0.1);
  color: #27405d;
}

.auth-card {
  position: relative;
  display: grid;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 7.8rem);
}

.auth-card-login {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.72fr);
}

.auth-card-setup {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 0;
}

.brand-block {
  position: relative;
  min-height: 34rem;
  padding: 2rem 1rem 2rem 1rem;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.2rem;
  background: transparent;
  color: white;
}

.brand-block::after {
  content: none;
}

.brand-block-login::before,
.brand-block-setup::before {
  content: '';
  position: absolute;
  inset: 8% 8% 8% 0;
  border-radius: 36px;
  background:
    linear-gradient(rgba(10, 9, 11, 0.54), rgba(10, 9, 11, 0.64)),
    radial-gradient(circle at 72% 76%, rgba(255, 176, 52, 0.18), transparent 18%),
    radial-gradient(circle at 20% 26%, rgba(17, 170, 207, 0.15), transparent 14%),
    linear-gradient(145deg, #111111, #181513 48%, #0f2329);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-block > * {
  position: relative;
  z-index: 1;
}

.brand-block h1 {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 0;
  max-width: 8ch;
}

.brand-block .eyebrow {
  color: rgba(255, 244, 226, 0.72);
  margin: 0;
}

.brand-block-setup p:not(.eyebrow) {
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 245, 235, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-form {
  width: min(100%, 28rem);
  margin-left: auto;
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.auth-form-setup {
  width: min(100%, 32rem);
}

.auth-form-header {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.auth-form-header h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}

.auth-form-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.auth-form input {
  border: 1px solid rgba(203, 209, 218, 0.95);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(248, 250, 252, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form input::placeholder {
  color: rgba(106, 117, 111, 0.72);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255, 97, 39, 0.44);
  box-shadow: 0 0 0 4px rgba(255, 97, 39, 0.12);
  transform: translateY(-1px);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.auth-actions button {
  min-width: 10rem;
  background: #ff6127;
}

.auth-actions button:hover {
  background: #ef5620;
}

.auth-note {
  margin: 0;
  color: rgba(106, 117, 111, 0.84);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-checklist {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
  color: rgba(255, 245, 235, 0.8);
  line-height: 1.55;
  max-width: 32rem;
}

.alert {
  margin-bottom: 0.2rem;
}

@media (max-width: 820px) {
  .auth-frame {
    padding: 0.75rem;
  }

  .auth-topbar {
    padding-inline: 0.85rem;
    border-radius: 16px;
  }

  .auth-logo {
    height: 2.7rem;
  }

  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-block,
  .auth-form {
    padding: 2rem;
  }

  .brand-block {
    gap: 1.25rem;
    min-height: 22rem;
  }

  .brand-block-login::before,
  .brand-block-setup::before {
    inset: 0;
    border-radius: 28px;
  }

  .brand-block h1 {
    max-width: none;
  }

  .auth-form,
  .auth-form-setup {
    width: 100%;
    margin-left: 0;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions button {
    width: 100%;
  }

  .auth-note {
    text-align: center;
  }
}