.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 90%, rgba(255, 107, 26, 0.08), transparent 28rem),
    var(--bone);
}

.auth-navbar {
  min-height: 72px;
}

.auth-back-link {
  color: rgba(23, 23, 23, 0.72);
  font-weight: 700;
  transition: color 0.2s ease;
}

.auth-back-link:hover,
.auth-back-link:focus-visible {
  color: var(--urban-orange);
}

.auth-main {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.auth-layout {
  width: min(100%, 1040px);
  min-height: 630px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 28px;
  overflow: hidden;
  background: white;
  box-shadow: 0 28px 80px rgba(23, 23, 23, 0.12);
}

.auth-layout-register {
  min-height: 700px;
}

.auth-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(ellipse at 80% 18%, rgba(255, 107, 26, 0.32), transparent 38%),
    linear-gradient(145deg, #232323 0%, #111 70%);
  color: white;
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.auth-story::before {
  width: 430px;
  height: 430px;
  right: -210px;
  top: 15%;
}

.auth-story::after {
  width: 320px;
  height: 320px;
  right: -155px;
  top: 24%;
}

.auth-kicker,
.auth-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.auth-kicker {
  color: rgba(255, 255, 255, 0.65);
}

.auth-emblem {
  width: 68px;
  height: 68px;
  margin: 2.4rem 0 1.5rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--urban-orange);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-7deg);
  box-shadow: 0 16px 38px rgba(255, 107, 26, 0.26);
}

.auth-emblem i {
  position: absolute;
  width: 22px;
  height: 3px;
  right: -7px;
  bottom: 12px;
  background: white;
  border-radius: 9px;
  transform: rotate(-48deg);
}

.auth-story h1 {
  margin: 0;
  font-size: clamp(2.55rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.auth-story h1 span {
  color: var(--urban-orange);
}

.auth-story > p {
  max-width: 310px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.auth-benefit {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 330px;
  margin-top: 2.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.auth-benefit-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.16);
  color: #ff9b62;
  font-size: 1.1rem;
}

.auth-story-lines {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: 18px;
  bottom: 14px;
  opacity: 0.14;
  background: repeating-linear-gradient(135deg, transparent 0 10px, white 10px 11px);
  mask-image: linear-gradient(135deg, transparent, black);
}

.auth-card {
  align-self: center;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.2rem);
}

.auth-card-heading {
  margin-bottom: 1.8rem;
}

.auth-eyebrow {
  color: var(--urban-orange);
}

.auth-card-heading h2 {
  margin: 0.65rem 0 0.45rem;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.auth-card-heading p {
  margin: 0;
  color: var(--secondary-gray);
}

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

.auth-field {
  display: grid;
  gap: 0.45rem;
  color: var(--carbon);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--carbon);
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
  color: #aaa7a1;
}

.auth-field input:focus {
  border-color: var(--urban-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.11);
}

.password-input {
  display: flex;
  align-items: center;
  position: relative;
}

.password-input input {
  padding-right: 5rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--secondary-gray);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--urban-orange);
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 0.3rem;
  justify-content: space-between;
  padding-inline: 1.25rem;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-submit span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.auth-submit:hover span {
  transform: translateX(4px);
}

.auth-message {
  display: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 107, 26, 0.08);
  color: #80502f;
  font-size: 0.88rem;
}

.auth-message.visible {
  display: block;
}

.auth-message[data-state="error"] {
  background: rgba(159, 45, 32, 0.08);
  color: #8a281e;
}

.auth-message[data-state="success"] {
  background: rgba(25, 115, 70, 0.08);
  color: #17633f;
}

.auth-switch {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--secondary-gray);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--carbon);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 26, 0.65);
  text-underline-offset: 3px;
}

.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 107, 26, 0.2);
  border-radius: 12px;
  background: rgba(255, 107, 26, 0.06);
  color: #6f625a;
}

.auth-notice > span {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.18);
  color: #a64813;
  font-size: 0.75rem;
  font-weight: 800;
}

.auth-notice p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .auth-main {
    min-height: auto;
    padding-top: 1.25rem;
  }

  .auth-layout,
  .auth-layout-register {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-story {
    min-height: 255px;
    padding: 1.6rem 1.7rem;
  }

  .auth-emblem {
    position: absolute;
    right: 1.8rem;
    top: 50%;
    margin: 0;
    transform: translateY(-50%) rotate(-7deg);
  }

  .auth-story h1 {
    font-size: 2.25rem;
  }

  .auth-story > p {
    max-width: 280px;
    font-size: 0.9rem;
  }

  .auth-benefit {
    display: none;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 380px) {
  .auth-navbar {
    min-height: 64px;
  }

  .auth-back-link {
    font-size: 0.84rem;
  }

  .auth-story {
    min-height: 230px;
    padding: 1.4rem;
  }

  .auth-emblem {
    width: 54px;
    height: 54px;
    right: 1.25rem;
    font-size: 1.1rem;
  }

  .auth-card {
    padding: 1.6rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
