.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--white);
}
.auth-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
  background: var(--ink);
  color: var(--white);
}
.auth-visual picture,
.auth-image,
.auth-visual::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.auth-image {
  object-fit: cover;
  object-position: center;
}
.auth-visual::after {
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(16, 21, 26, 0.86));
}
.auth-visual-copy {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 4.2vw, 72px);
  right: 28px;
  bottom: clamp(36px, 5vw, 80px);
}
.auth-visual-label {
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.auth-visual-copy p {
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(36px, 4.3vw, 68px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 clamp(28px, 4vw, 68px);
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-height: 106px;
  padding: 28px 0;
}
.auth-header .brand {
  min-height: 44px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.auth-back:hover {
  color: var(--action);
}
.auth-main {
  display: flex;
  align-items: center;
  flex: 1;
  width: min(100%, 410px);
  align-self: center;
  padding: 48px 0;
}
.auth-card {
  min-width: 0;
  width: 100%;
}
.auth-card h1 {
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.13;
  margin: 16px 0 20px;
}
.auth-intro {
  color: var(--muted);
  margin-bottom: 34px;
  overflow-wrap: anywhere;
}
.auth-card label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.auth-card input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #9da7b3;
  border-radius: 6px;
  padding: 14px;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}
.auth-card input:focus-visible,
.auth-card button:focus-visible,
.auth-back:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
.auth-button {
  width: 100%;
  margin-top: 18px;
  min-height: 52px;
  font-size: 14px;
}
.auth-card button:disabled {
  cursor: default;
  opacity: 0.6;
}
.auth-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: 14px;
}
.auth-options button {
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  color: var(--action);
  font-size: 13px;
  font-weight: 700;
}
.auth-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.auth-page .account-legal-notice {
  width: min(100%, 410px);
  margin: 0 auto;
  padding: 16px 0 24px;
}
.auth-page .account-legal-notice nav {
  column-gap: 16px;
  row-gap: 0;
}
.auth-page .account-legal-notice a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 760px) and (max-width: 1050px) {
  .auth-page {
    grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
  }
  .auth-header {
    align-content: start;
  }
}
@media (max-width: 759px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
  }
  .auth-panel {
    display: contents;
  }
  .auth-header {
    grid-row: 1;
    min-height: 76px;
    padding: 14px 24px;
    gap: 6px 16px;
  }
  .auth-header .brand {
    font-size: 18px;
  }
  .auth-back {
    font-size: 11px;
  }
  .auth-visual {
    grid-row: 2;
    height: clamp(132px, 25svh, 210px);
    min-height: 0;
  }
  .auth-visual::after {
    background: linear-gradient(90deg, rgba(16, 21, 26, 0.76), transparent 85%);
  }
  .auth-visual-copy {
    top: 50%;
    bottom: auto;
    left: 24px;
    transform: translateY(-50%);
  }
  .auth-visual-label {
    font-size: 9px;
    letter-spacing: 0.09em;
    margin-bottom: 10px;
  }
  .auth-visual-copy p {
    font-size: clamp(25px, 5.5vw, 34px);
  }
  .auth-main {
    grid-row: 3;
    width: min(100% - 48px, 440px);
    justify-self: center;
    padding: 32px 0 20px;
  }
  .auth-card h1 {
    font-size: 30px;
    margin-top: 12px;
    margin-bottom: 14px;
  }
  .auth-intro {
    margin-bottom: 24px;
    font-size: 15px;
  }
  .auth-page .account-legal-notice {
    grid-row: 4;
    width: min(100% - 48px, 440px);
    padding: 12px 0 max(20px, env(safe-area-inset-bottom));
  }
}
