/* Focused visual treatment for the dedicated user login and registration pages. */
body.auth-body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: #120e12;
}

.auth-body .topbar {
  position: relative;
  z-index: 2;
  flex: 0 0 72px;
  height: 72px;
  padding-inline: clamp(22px, 4vw, 68px);
  border-bottom: 1px solid #38242c;
  background: #171216;
}

.auth-body .brand {
  color: #fff2ec;
  font-size: 21px;
}

.auth-body .auth-nav a,
.auth-body .auth-mobile-home {
  color: #ef8da2;
  transition: color 180ms ease, opacity 180ms ease;
}

.auth-body .auth-nav a:hover,
.auth-body .auth-mobile-home:hover {
  color: #ffc0cc;
  text-decoration: none;
}

.auth-body .auth-nav a.auth-register-link,
.auth-body .auth-mobile-home.auth-register-link {
  padding: 8px 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d0526c, #a93652);
  color: #fff;
  box-shadow: 0 7px 18px rgba(150, 43, 68, 0.22);
}

.auth-body .auth-nav a.auth-register-link:hover,
.auth-body .auth-mobile-home.auth-register-link:hover {
  background: linear-gradient(135deg, #e06078, #ba3e5b);
  color: #fff;
}

.auth-body .auth-mobile-home {
  display: none;
}

.auth-body .main-wrap.auth-main {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  flex: 1 0 auto;
  margin: 0;
  padding: 0;
}

.user-auth-page {
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #120e12;
  box-shadow: none;
}

.user-auth-page.is-register {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #120e12;
  box-shadow: none;
}

.auth-visual {
  position: relative;
  min-width: 0;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  overflow: hidden;
  background: #171216;
  isolation: isolate;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: auth-photo-enter 950ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

/* This soft edge joins the photo's shadow to the form's page surface. */
.auth-visual::after {
  position: absolute;
  inset: 0 -1px 0 0;
  background: linear-gradient(90deg, transparent 57%, rgba(18, 14, 18, 0.32) 76%, #120e12 100%);
  content: "";
  pointer-events: none;
}

.user-auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 560px);
  min-width: 0;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  margin-inline: auto;
  padding: clamp(36px, 5vw, 72px);
  animation: auth-form-enter 520ms 90ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.user-auth-page.is-register .user-auth-main {
  width: min(100%, 660px);
  padding: clamp(30px, 4vw, 58px);
}

.user-auth-heading {
  margin-bottom: 28px;
}

.user-auth-heading .eyebrow {
  margin: 0 0 8px;
  color: #ec849a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.user-auth-heading h1 {
  margin: 0 0 7px;
  color: #fff1eb;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.user-auth-heading > p:last-child {
  margin: 0;
  color: #b9a9a4;
  font-size: 15px;
}

.user-auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.user-auth-form.is-register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
}

.user-auth-form > label {
  min-width: 0;
  margin: 0 0 13px;
  color: #e7d9d4;
  font-size: 13px;
  font-weight: 650;
}

.user-auth-form input:not([type="checkbox"]) {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #60414b;
  border-radius: 9px;
  outline: 0;
  background: #191418;
  color: #fff1eb;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.user-auth-form input:not([type="checkbox"]):hover {
  border-color: #80505d;
}

.user-auth-form input:not([type="checkbox"]):focus {
  border-color: #dc7188;
  outline: 0;
  background: #1d151a;
  box-shadow: 0 0 0 3px rgba(212, 83, 111, 0.18);
}

.user-auth-form .consent {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 1px 0 10px;
  color: #cdbcb8;
  font-size: 12px;
  font-weight: 400;
}

.user-auth-form .consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: #cf526d;
}

.user-auth-form .consent a {
  color: #ef8da2;
  transition: color 180ms ease;
}

.user-auth-form .consent a:hover {
  color: #ffc0cc;
}

.user-auth-form .button.full {
  min-height: 54px;
  grid-column: 1 / -1;
  margin-top: 4px;
  border-radius: 10px;
  background: linear-gradient(105deg, #d04d6b, #ad3452);
  box-shadow: 0 10px 26px rgba(183, 53, 82, 0.18);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.user-auth-form .button.full:hover {
  transform: translateY(-1px);
  background: linear-gradient(105deg, #dc5b78, #bb3d5c);
  box-shadow: 0 13px 30px rgba(183, 53, 82, 0.25);
}

.user-auth-form .button.full:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(183, 53, 82, 0.18);
}

.user-auth-switch {
  margin: 19px 0 0;
  color: #cdbcb8;
  font-size: 13px;
  text-align: center;
}

.user-auth-switch a,
.user-auth-home {
  color: #ef8da2;
  font-weight: 650;
  transition: color 180ms ease;
}

.user-auth-switch a:hover,
.user-auth-home:hover {
  color: #ffc0cc;
  text-decoration: none;
}

.user-auth-home {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  font-size: 13px;
}

.footer.footer-auth {
  display: none;
}

@keyframes auth-photo-enter {
  from { opacity: 0.72; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes auth-form-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .auth-body .topbar {
    flex-basis: 64px;
    height: 64px;
    padding-inline: 22px;
  }

  .auth-body .main-wrap.auth-main,
  .user-auth-page {
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
  }

  .auth-body .main-wrap.auth-main {
    flex: 1 0 auto;
  }

  .user-auth-page,
  .user-auth-page.is-register {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(220px, 29svh, 300px) minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #120e12;
    box-shadow: none;
  }

  .user-auth-page.is-register {
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
  }

  .auth-visual {
    min-height: 0;
  }

  .auth-visual img {
    object-position: center 24%;
  }

  .auth-visual::after {
    inset: auto 0 -1px;
    height: 44%;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 14, 18, 0.42) 52%, #120e12 100%);
  }

  .user-auth-main,
  .user-auth-page.is-register .user-auth-main {
    width: min(100%, 620px);
    align-self: start;
    padding: 32px 30px 40px;
  }

  .user-auth-heading {
    margin-bottom: 22px;
  }
}

@media (max-width: 640px) {
  .auth-body .topbar {
    flex-basis: 56px;
    height: 56px;
    padding-inline: 17px;
  }

  .auth-body .brand {
    font-size: 18px;
  }

  .auth-body .auth-nav {
    display: none;
  }

  .auth-body .auth-mobile-home {
    display: block;
    width: fit-content;
    font-size: 13px;
    font-weight: 650;
  }

  .auth-body .main-wrap.auth-main,
  .user-auth-page {
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
  }

  .user-auth-page,
  .user-auth-page.is-register {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-rows: clamp(190px, 26svh, 235px) minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #120e12;
    box-shadow: none;
  }

  .user-auth-main,
  .user-auth-page.is-register .user-auth-main {
    width: 100%;
    padding: 26px 22px 34px;
  }

  .user-auth-heading {
    margin-bottom: 20px;
  }

  .user-auth-heading h1 {
    font-size: 28px;
  }

  .user-auth-form.is-register {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .user-auth-form > label {
    margin-bottom: 11px;
  }

  .user-auth-form input:not([type="checkbox"]) {
    min-height: 50px;
    font-size: 16px;
  }
}

@media (min-width: 821px) {
  .user-auth-main {
    align-self: stretch;
    padding: 40px clamp(42px, 5vw, 72px);
  }

  .user-auth-heading {
    margin-bottom: 70px;
  }

  .user-auth-heading .eyebrow {
    margin-bottom: 11px;
    font-size: 14px;
  }

  .user-auth-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(42px, 3.5vw, 50px);
  }

  .user-auth-heading > p:last-child {
    font-size: 17px;
  }

  .user-auth-form {
    gap: 8px;
  }

  .user-auth-form > label {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .user-auth-form input:not([type="checkbox"]) {
    min-height: 68px;
    padding-inline: 16px;
  }

  .user-auth-form .button.full {
    min-height: 68px;
    margin-top: 8px;
  }

  .user-auth-switch {
    margin-top: 40px;
    font-size: 15px;
  }

  .user-auth-home {
    margin-top: 34px;
    font-size: 15px;
  }

  .user-auth-page.is-register .user-auth-main {
    width: min(100%, 720px);
    padding: 40px 32px 40px clamp(56px, 5.7vw, 82px);
  }

  .user-auth-page.is-register .user-auth-heading {
    margin-bottom: 60px;
  }

  .user-auth-page.is-register .user-auth-heading h1 {
    font-size: clamp(38px, 3.2vw, 46px);
  }

  .user-auth-form.is-register {
    row-gap: 0;
  }

  .user-auth-form.is-register > label {
    margin-bottom: 34px;
  }

  .user-auth-page.is-register .user-auth-form input:not([type="checkbox"]) {
    min-height: 64px;
  }

  .user-auth-page.is-register .user-auth-form .consent {
    margin-block: 3px 12px;
  }

  .user-auth-page.is-register .user-auth-form .button.full {
    min-height: 68px;
  }

  .user-auth-page.is-register .user-auth-switch {
    margin-top: 35px;
  }

  .user-auth-page.is-register .user-auth-home {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual img,
  .user-auth-main {
    animation: none;
  }

  .auth-body *,
  .auth-body *::before,
  .auth-body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
