.login-page {
  min-height: 100vh;
  background: #11100d;
  color: var(--ink);
}

.login-page.auth-page {
  --auth-art: url("auth-login-art.png");
}

.login-page.auth-page.register-page {
  --auth-art: url("auth-register-art.png");
}

.auth-page {
  overflow-x: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(340px, 0.42fr);
}

.auth-shell {
  grid-template-columns: minmax(0, 0.57fr) minmax(360px, 0.43fr);
  align-items: stretch;
}

.auth-shell-production {
  min-height: 100vh;
  background:
    radial-gradient(circle at 62% 18%, rgba(192, 143, 66, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(17, 16, 13, 0.96), rgba(17, 16, 13, 0.82) 48%, rgba(248, 241, 229, 0.98) 48%);
}

.login-marketing,
.login-card {
  padding: clamp(28px, 5vw, 72px);
}

.login-marketing {
  display: grid;
  align-content: center;
  gap: 22px;
}

.auth-marketing {
  position: relative;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  overflow: hidden;
  color: #f6efe0;
}

.auth-visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 16, 13, 0.26), rgba(17, 16, 13, 0.08)),
    var(--auth-art);
  background-position: center;
  background-size: cover;
  opacity: 0.92;
}

.auth-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 16, 13, 0.28), transparent 34%, rgba(17, 16, 13, 0.44)),
    radial-gradient(circle at 14% 18%, rgba(199, 151, 78, 0.22), transparent 28%);
  pointer-events: none;
}

.auth-visual-panel > * {
  position: relative;
  z-index: 1;
}

.login-marketing h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  line-height: 0.94;
}

.login-marketing p {
  max-width: 640px;
  color: rgba(246, 239, 224, 0.78);
  font-size: 1.02rem;
  line-height: 1.62;
}

.login-preview {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(23, 29, 34, 0.08);
}

.login-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-hero-copy {
  max-width: 640px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(233, 215, 180, 0.22);
  border-radius: 22px;
  background: rgba(14, 14, 12, 0.34);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.auth-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  line-height: 0.94;
}

.auth-points {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.auth-points article {
  padding: 16px 18px;
  border: 1px solid rgba(233, 215, 180, 0.2);
  border-radius: 14px;
  background: rgba(14, 14, 12, 0.34);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.auth-points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.22rem;
}

.auth-points p {
  margin: 0;
  color: rgba(246, 239, 224, 0.72);
}

.login-card {
  display: grid;
  align-content: center;
  gap: 18px;
}

.auth-card {
  position: relative;
  isolation: isolate;
  border-left: 1px solid rgba(89, 66, 38, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 241, 229, 0.98)),
    radial-gradient(circle at 70% 14%, rgba(196, 143, 63, 0.18), transparent 34%);
}

.login-card > .eyebrow {
  margin-bottom: 12px;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.login-copy {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.62;
}

.auth-card-copy {
  display: grid;
  gap: 12px;
}

.auth-card-copy h2 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.login-form {
  display: grid;
  gap: 16px;
  max-width: 460px;
  margin-top: 20px;
}

.login-back,
.login-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.login-note {
  margin: 8px 0 0;
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-glb-frame {
  position: absolute;
  top: clamp(24px, 5vw, 52px);
  right: clamp(18px, 4vw, 48px);
  z-index: 0;
  width: min(38vw, 360px);
  min-height: 280px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.auth-glb-frame model-viewer {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

.auth-card-copy,
.login-form,
.auth-domenico-help {
  position: relative;
  z-index: 1;
}

.auth-card-copy {
  padding-top: 300px;
}

body.login-page .auth-card {
  padding-top: 18px;
}

body.login-page .auth-card .login-form {
  margin-top: 0;
}

body.login-page.register-page .auth-card-copy {
  padding-top: 300px;
}

.auth-domenico-stage {
  cursor: pointer;
  transform:
    translate3d(var(--domenico-shift-x, 0), var(--domenico-shift-y, 0), 0)
    rotateY(var(--domenico-tilt-x, 0))
    rotateX(var(--domenico-tilt-y, 0))
    scale(var(--domenico-scale, 1));
  transition: transform 180ms ease;
}

.auth-domenico-help {
  max-width: 460px;
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(187, 151, 93, 0.32);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.auth-domenico-help strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.auth-domenico-help p {
  margin: 0;
  color: #625846;
  line-height: 1.48;
}

.auth-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-help-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(187, 151, 93, 0.38);
  border-radius: 999px;
  background: #fffaf0;
  color: #2a251d;
  cursor: pointer;
}

.auth-help-actions button:first-child {
  background: #141414;
  color: #f6efe0;
}

.auth-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 16, 13, 0.68);
}

.auth-guide-card {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(197, 150, 75, 0.5);
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.auth-guide-card h3 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.95;
}

.auth-guide-card p {
  color: #625846;
}

.auth-guide-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.auth-guide-steps article {
  padding: 12px;
  border: 1px solid rgba(187, 151, 93, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.auth-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-guide-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(187, 151, 93, 0.38);
  border-radius: 999px;
  background: #fffaf0;
  cursor: pointer;
}

.auth-guide-actions button[data-auth-guide-finish] {
  background: #141414;
  color: #f6efe0;
}

.auth-guide-model {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.auth-guide-model [data-societext-glb-frame] {
  width: 100%;
  height: 360px;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell-production {
    background: #f8f1e5;
  }

  .auth-glb-frame {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .auth-card-copy {
    padding-top: 0;
  }

  .auth-guide-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}
