/* Account entry uses the landing palette; the existing two-panel slide stays intact. */
.auth-layout {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: #f4f3ee;
  font-family: var(--font-landing);
}
.auth-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1440px, 100%);
  min-height: max(690px, calc(100dvh - 48px));
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #e6e5de;
  border-radius: 25px;
  box-shadow: 0 16px 60px #444b3510;
  overflow: hidden;
}
.auth-page a {
  color: inherit;
  text-decoration: none;
}
.auth-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 10px;
  padding: 30px;
  border-radius: 18px;
  background: #e8ece0 url("/assets/knowable-bg-886597bc.webp") 47% center/cover;
  isolation: isolate;
}
.auth-intro:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #f4f3eee6,
    #f4f3eead 38%,
    #f4f3ee26 65%,
    #f4f3eec9
  );
  border-radius: inherit;
  z-index: -1;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.auth-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}
.auth-story {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.auth-story--signup,
.auth-page--signup .auth-story--login {
  display: none;
}
.auth-page--signup .auth-story--signup {
  display: flex;
}
.auth-story-copy {
  margin-top: 48px;
}
.auth-kicker {
  margin-bottom: 14px;
  font-size: 11px;
  color: #626864;
}
.auth-intro h1 {
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.06;
}
.auth-intro h1 em {
  font-family: var(--font-editorial);
  font-weight: 400;
}
.auth-story-copy > p:last-child {
  max-width: 29ch;
  margin-top: 18px;
  color: #626864;
  font-size: 13px;
  line-height: 1.7;
}
.auth-study-scene {
  width: min(100%, 330px);
  margin: auto;
  padding-block: 32px 24px;
}
.auth-lesson-card,
.auth-plan-card {
  position: relative;
  border-radius: 18px;
  padding: 24px;
  background: #ffffffed;
  box-shadow: 0 10px 35px #00000012;
  backdrop-filter: blur(12px);
}
.auth-paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 10px;
}
.auth-paper-top img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
.auth-lesson-card strong,
.auth-plan-card strong {
  display: block;
  font-size: 25px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 500;
}
.auth-learning-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
  font-size: 10px;
}
.auth-learning-steps span:last-child {
  color: var(--color-muted);
}
.auth-learning-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.auth-learning-progress i {
  height: 5px;
  border-radius: 5px;
  background: var(--color-lime);
}
.auth-learning-progress i:last-child {
  background: var(--color-line);
}
.auth-source-tabs {
  display: flex;
  gap: 6px;
  padding-inline: 10px;
}
.auth-source-tabs span {
  flex: 1;
  border-radius: 9px 9px 0 0;
  padding: 10px 5px;
  background: #ffffffc9;
  font-size: 9px;
  text-align: center;
}
.auth-source-tabs span:nth-child(2) {
  background: var(--color-lime);
}
.auth-plan-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--color-line);
  padding-top: 12px;
  font-size: 11px;
}
.auth-plan-topic > span:first-child {
  color: var(--color-muted);
  font-size: 10px;
}
.auth-plan-topic > span:last-child {
  margin-left: auto;
}
.auth-scene-caption {
  margin-top: 18px;
  color: #626864;
  font-size: 10px;
  text-align: center;
}
.auth-back {
  width: fit-content;
  margin-top: 8px;
  font-size: 11px;
}
.auth-back:hover,
.auth-page .text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-panel {
  display: grid;
  align-content: center;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 56px);
}
/* Reserve both panels' height so the container stays steady during the slide. */
.auth-panel[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}
.auth-forms {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-width: 0;
}
.auth-forms .auth-panel {
  grid-column: 1;
  grid-row: 1;
}
.auth-page--switchable .auth-intro {
  grid-column: 1;
  grid-row: 1;
}
.auth-page--switchable .auth-intro,
.auth-forms {
  transition: transform 280ms cubic-bezier(0.77, 0, 0.175, 1);
}
.auth-page--instant .auth-intro,
.auth-page--instant .auth-forms {
  transition: none;
}
.auth-page--signup .auth-intro {
  transform: translateX(calc(100% + 20px));
}
.auth-page--signup .auth-forms {
  transform: translateX(-100%);
}
.auth-panel-copy {
  display: grid;
  gap: 12px;
}
.auth-eyebrow {
  font-size: 11px;
  color: var(--color-muted);
}
.auth-panel h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.3px;
  line-height: 1.12;
}
.auth-panel-copy > p:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
  text-wrap: pretty;
}
.auth-form {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}
.auth-form .field {
  display: grid;
  gap: 8px;
}
.auth-form label {
  font-size: 11px;
  font-weight: 600;
}
.auth-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: var(--color-surface-soft);
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text);
  transition:
    border-color var(--duration-180),
    background var(--duration-180);
}
.auth-form input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.auth-form input:focus {
  background: var(--color-surface);
  border-color: var(--color-text);
}
.auth-password-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.auth-password-label .text-link {
  font-size: 10px;
  color: var(--color-muted);
}
.auth-form .auth-submit {
  margin-top: 5px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--color-action);
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 650;
  box-shadow:
    inset 0 2px 2px #ffffff27,
    inset 0 -2px 1px #00000060,
    0 1px 2px #00000040;
  cursor: pointer;
}
.auth-form .auth-submit:hover {
  background: var(--color-action-hover);
}
.auth-form .auth-submit:active {
  background: var(--color-text);
  box-shadow: inset 0 2px 3px #00000050;
}
.auth-form .auth-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}
.auth-form-note {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.7;
}
.auth-switch {
  margin-top: 24px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.7;
}
.auth-switch a {
  margin-left: 4px;
  color: var(--color-text);
  font-weight: 650;
}
.auth-layout .toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100% - 32px);
  border-radius: 14px;
  background: var(--color-action);
  color: var(--color-surface);
  padding: 14px 20px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 5px 20px #0003;
}
@media (max-width: 760px) {
  .auth-layout {
    padding: 16px;
  }
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
    width: min(440px, 100%);
    min-height: 0;
  }
  .auth-page--switchable .auth-intro,
  .auth-forms {
    transition: none;
  }
  .auth-intro,
  .auth-page--signup .auth-intro {
    grid-column: 1;
    grid-row: 1;
    margin: 8px;
    border-radius: 18px;
    padding: 20px;
    transform: none;
  }
  .auth-intro .auth-story,
  .auth-back {
    display: none;
  }
  .auth-forms,
  .auth-page--signup .auth-forms {
    grid-column: 1;
    grid-row: 2;
    transform: none;
  }
  .auth-panel {
    padding: 28px 28px 36px;
  }
  .auth-panel[hidden] {
    display: none;
  }
  .auth-panel h2 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page--switchable .auth-intro,
  .auth-forms,
  .auth-form input {
    transition: none;
  }
}
