body.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96) 0 42%, rgba(245, 234, 244, .9) 42% 100%),
    var(--violet-50);
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-shell::before {
  inset: 0;
  background:
    linear-gradient(rgba(36, 17, 36, .18), rgba(36, 17, 36, .42)),
    url("https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1600&q=80") center / cover;
  clip-path: polygon(0 0, 36% 0, 52% 100%, 0 100%);
}

.auth-shell::after {
  right: -12%;
  bottom: -24%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 137, 53, .18), transparent 68%);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin-left: min(32vw, 410px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(238, 229, 238, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-panel-narrow {
  width: min(100%, 520px);
}

.auth-brand {
  margin-bottom: 2rem;
}

.auth-panel h1 {
  margin: 0;
  color: var(--violet-950);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1;
}

.auth-copy {
  margin: .95rem 0 1.6rem;
  color: var(--muted);
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: .8rem;
}

.auth-form .row {
  margin-bottom: .1rem;
}

.auth-form label {
  color: var(--violet-900);
  font-size: .88rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: .78rem .95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--violet-50);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-form input:focus {
  border-color: rgba(111, 31, 85, .58);
  background: var(--white);
  box-shadow: 0 0 0 .25rem rgba(111, 31, 85, .12);
}

.auth-form .btn {
  margin-top: .65rem;
  min-height: 50px;
}

.auth-switch {
  margin: 1.45rem 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--violet-800);
  font-weight: 800;
}

.auth-switch a:hover {
  color: var(--gold);
}

.auth-panel .alert {
  margin: 0 0 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.55;
}

.auth-panel .alert-danger {
  color: #6f1f2e;
  border-color: #f1c9d0;
  background: #fff1f3;
}

.auth-panel .alert-success {
  color: #315f36;
  border-color: #cce6cf;
  background: #f0fff2;
}

@media (max-width: 991px) {
  .auth-shell {
    align-items: end;
    padding-top: 8rem;
  }

  .auth-shell::before {
    height: 36vh;
    clip-path: none;
  }

  .auth-panel {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 6.5rem 1rem 1rem;
  }

  .auth-panel {
    padding: 1.25rem;
  }

  .auth-brand {
    margin-bottom: 1.5rem;
  }

  .auth-copy {
    margin-bottom: 1.25rem;
  }
}
