body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 980px 620px at 8% 14%, rgba(56, 189, 248, .30), transparent 62%),
    radial-gradient(ellipse 860px 560px at 92% 18%, rgba(139, 92, 246, .24), transparent 60%),
    radial-gradient(ellipse 760px 500px at 50% 92%, rgba(191, 219, 254, .44), transparent 64%),
    linear-gradient(135deg, #eef7ff 0%, #f6f3ff 48%, #eaf8ff 100%);
}

body.auth-page .auth-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 40px 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.auth-page .auth-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(min(17.5rem, 100%), .92fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
}

body.auth-page .auth-card,
body.auth-page .auth-benefit-panel {
  border: 1px solid rgba(67, 88, 244, .16);
  background:
    radial-gradient(circle at 88% 0%, rgba(139, 92, 246, .12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(237, 233, 254, .72));
  box-shadow:
    0 24px 78px rgba(67, 88, 244, .16),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.auth-page .auth-card {
  min-height: min(74vh, 680px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.auth-page .auth-header {
  margin: 0 0 28px;
}

body.auth-page .auth-eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(67, 88, 244, .12);
  border: 1px solid rgba(67, 88, 244, .16);
  color: #4358f4;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.auth-page .auth-header h1 {
  margin: 0;
  max-width: 10ch;
  color: #111827;
  font-family: var(--font-display, "Ribeye", serif);
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: .98;
  letter-spacing: .01em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .78);
}

body.auth-page .auth-header .sub {
  max-width: 54ch;
  margin: 18px 0 0;
  color: rgba(17, 24, 39, .70);
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  line-height: 1.58;
}

body.auth-page .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid rgba(67, 88, 244, .15);
  border-radius: 18px;
  background: rgba(255, 255, 255, .52);
}

body.auth-page .auth-tabs .btn {
  min-height: 46px;
  width: 100%;
  border-radius: 14px;
  font-family: var(--font-body, "Nunito", system-ui, sans-serif);
}

body.auth-page .auth-tabs .btn:not(.primary) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(17, 24, 39, .70);
}

body.auth-page .auth-form {
  display: grid;
  gap: 16px;
}

body.auth-page .auth-field {
  display: grid;
  gap: 8px;
}

body.auth-page .auth-form label {
  color: rgba(17, 24, 39, .76);
  font-family: var(--font-body, "Nunito", system-ui, sans-serif);
  font-size: .95rem;
  font-weight: 800;
}

body.auth-page .auth-form .input,
body.auth-page .auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(67, 88, 244, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(223, 243, 255, .66));
  color: #111827;
  font-family: var(--font-body, "Nunito", system-ui, sans-serif);
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 8px 18px rgba(67, 88, 244, .07);
}

body.auth-page .auth-form .input:focus,
body.auth-page .auth-form input:focus {
  outline: none;
  border-color: rgba(67, 88, 244, .58);
  box-shadow:
    0 0 0 4px rgba(67, 88, 244, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

body.auth-page .auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

body.auth-page .auth-actions .btn {
  min-height: 48px;
  min-width: 138px;
  font-family: var(--font-body, "Nunito", system-ui, sans-serif);
}

body.auth-page .auth-actions .btn.primary,
body.auth-page #submitAuth {
  box-shadow: 0 14px 28px rgba(67, 88, 244, .26);
}

body.auth-page .signed-in-box {
  margin-top: 4px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(67, 88, 244, .16);
  background:
    linear-gradient(135deg, rgba(223, 243, 255, .78), rgba(237, 233, 254, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70);
}

body.auth-page .signed-in-box .small {
  margin: 0 0 14px;
  color: rgba(17, 24, 39, .72);
}

body.auth-page .msgBox {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(67, 88, 244, .14);
  color: rgba(17, 24, 39, .75);
}

body.auth-page .auth-benefit-panel {
  padding: 22px;
  border-radius: 28px;
  display: grid;
  align-content: center;
  gap: 14px;
}

body.auth-page .auth-benefit-card {
  min-height: 148px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .62);
  background:
    radial-gradient(circle at 92% 4%, rgba(56, 189, 248, .18), transparent 34%),
    rgba(255, 255, 255, .58);
  box-shadow:
    0 12px 28px rgba(67, 88, 244, .10),
    inset 0 1px 0 rgba(255, 255, 255, .76);
}

body.auth-page .auth-benefit-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4358f4, #8b5cf6);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(67, 88, 244, .22);
}

body.auth-page .auth-benefit-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-family: var(--font-body, "Nunito", system-ui, sans-serif);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

body.auth-page .auth-benefit-card p {
  margin: 0;
  color: rgba(17, 24, 39, .64);
  font-size: .96rem;
  line-height: 1.52;
}

body.auth-page .auth-footer {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: rgba(17, 24, 39, .54);
}

@media (max-width: 920px) {
  body.auth-page .auth-shell {
    align-items: flex-start;
    padding-top: 28px;
  }

  body.auth-page .auth-main {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-card {
    min-height: auto;
  }

  body.auth-page .auth-benefit-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: stretch;
  }
}

@media (max-width: 480px) {
  body.auth-page .auth-shell {
    width: min(100% - 20px, 420px);
  }

  body.auth-page .auth-tabs {
    padding: 5px;
  }

  body.auth-page .auth-tabs .btn {
    min-height: 44px;
    padding-inline: 10px;
  }
}

@media (max-width: 680px) {
  body.auth-page .auth-shell {
    width: min(100% - 24px, 560px);
    padding: 22px 0 34px;
  }

  body.auth-page .auth-card {
    padding: 24px;
    border-radius: 24px;
  }

  body.auth-page .auth-header h1 {
    max-width: none;
    font-size: clamp(2.25rem, 14vw, 3.35rem);
  }

  body.auth-page .auth-tabs,
  body.auth-page .auth-benefit-panel {
    grid-template-columns: 1fr;
  }

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

  body.auth-page .auth-actions .btn {
    width: 100%;
  }

  body.auth-page .auth-benefit-card {
    min-height: 0;
  }
}
