.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Volvo Novum", "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(132, 198, 244, 0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(46, 89, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #10192b 0%, #202A44 52%, #EEF3FB 52%, #E7EEF8 100%);
  color: #17243B;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.auth-visual-panel {
  position: relative;
  overflow: hidden;
  padding: 42px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.22;
}

.auth-glow-one {
  width: 260px;
  height: 260px;
  background: #84C6F4;
  top: 6%;
  right: 12%;
}

.auth-glow-two {
  width: 230px;
  height: 230px;
  background: #2E59FF;
  bottom: 12%;
  left: 8%;
}

.auth-brand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: center;
}

.auth-brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-overline {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 6px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.auth-hero-card {
  position: relative;
  z-index: 2;
  max-width: 620px;
  border-radius: 34px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 26px 70px rgba(0,0,0,0.28);
  backdrop-filter: blur(16px);
}

.auth-hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.auth-hero-content p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255,255,255,0.78);
  line-height: 1.58;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(132, 198, 244, 0.14);
  border: 1px solid rgba(132, 198, 244, 0.22);
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  font-weight: 800;
}

.auth-pill.dark {
  background: rgba(46, 89, 255, 0.08);
  border-color: rgba(46, 89, 255, 0.18);
  color: #1E3FAF;
}

.auth-feature-grid {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-feature {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  font-size: 0.88rem;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(100%, 470px);
  border-radius: 34px;
  padding: 30px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: 0 24px 64px rgba(16,24,40,0.16);
  backdrop-filter: blur(14px);
}

.auth-card-head h2 {
  margin: 18px 0 8px;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: #202A44;
}

.auth-card-head p {
  color: #61718A;
  margin: 0 0 22px;
}

.auth-form label {
  font-weight: 800;
  color: #202A44;
}

.auth-input,
.access-form-grid .form-control {
  border-radius: 16px !important;
  border: 1px solid #D7E2F0 !important;
  padding: 0.8rem 0.95rem !important;
  background: #fff !important;
}

.auth-input:focus,
.access-form-grid .form-control:focus {
  border-color: #2E59FF !important;
  box-shadow: 0 0 0 0.22rem rgba(46, 89, 255, 0.14) !important;
}

.auth-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #2E59FF 0%, #1E3FAF 100%);
  box-shadow: 0 14px 30px rgba(30,63,175,0.22);
}

.auth-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(180deg, #365fff 0%, #1d3db2 100%);
}

.auth-request {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border-radius: 16px;
  padding: 0.82rem 1rem;
  color: #202A44;
  font-weight: 900;
  border: 1px solid #C8D6E8;
  background: #F7FAFE;
}

.auth-request:hover {
  background: #EEF3FB;
  color: #1E3FAF;
}

.auth-note {
  margin-top: 18px;
  padding-top: 16px;
  color: #61718A;
  font-size: 0.86rem;
  border-top: 1px solid #D7E2F0;
}

.auth-error {
  margin-top: 5px;
  color: #8a2730;
  font-size: 0.84rem;
}

.auth-message-stack .alert {
  border-radius: 16px;
}

.access-status,
.access-role {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.access-status.active {
  background: rgba(63, 196, 216, 0.12);
  color: #202A44;
  border: 1px solid rgba(63, 196, 216, 0.25);
}

.access-status.inactive {
  background: #F7FAFE;
  color: #61718A;
  border: 1px solid #D7E2F0;
}

.access-role.owner {
  background: rgba(46, 89, 255, 0.10);
  color: #1E3FAF;
  border: 1px solid rgba(46, 89, 255, 0.18);
}

.access-role.standard {
  background: #F7FAFE;
  color: #61718A;
  border: 1px solid #D7E2F0;
}

.access-form-panel {
  max-width: 980px;
}

.access-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.access-form-wide,
.access-form-actions {
  grid-column: 1 / -1;
}

.access-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F7FAFE;
  border: 1px solid #D7E2F0;
  border-radius: 18px;
  padding: 14px;
}

.access-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    min-height: 48vh;
    padding: 28px;
  }

  .auth-form-panel {
    padding: 20px;
  }

  .access-form-grid {
    grid-template-columns: 1fr;
  }
}

.access-form-grid .form-select {
  border-radius: 16px !important;
  border: 1px solid #D7E2F0 !important;
  padding: 0.8rem 0.95rem !important;
  background: #fff !important;
  color: #17243B !important;
}

.access-form-grid .form-select:focus {
  border-color: #2E59FF !important;
  box-shadow: 0 0 0 0.22rem rgba(46, 89, 255, 0.14) !important;
}

.access-check-row {
  align-items: flex-start;
}

.access-check-row .form-check-input {
  margin-top: 0.25rem;
  min-width: 1.1rem;
}

.access-check-row label {
  font-weight: 900;
  color: #202A44;
}

.access-check-row .subtle-cell {
  margin-left: auto;
  max-width: 55ch;
}