/* Keep authentication neutral; learning-space themes remain account-scoped. */
:root .auth-entry {
  --ink: #202020;
  --muted: #686868;
  --line: #d2d2d2;
  --soft: #eeeeee;
  --panel: #ffffff;
  --green: #202020;
  --blue: #202020;
  --danger: #343434;
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: #f4f4f4;
  color: var(--ink);
  color-scheme: light;
}

:root .auth-entry .auth-header {
  width: min(1240px, calc(100% - 96px));
  height: 104px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

:root .auth-entry a {
  color: var(--ink);
  text-decoration: none;
}

:root .auth-entry .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
  white-space: nowrap;
}

:root .auth-entry .auth-brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

:root .auth-entry .auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  font-size: 12px;
}

:root .auth-entry .auth-content {
  width: 100%;
  min-height: calc(100vh - 104px);
  min-height: calc(100dvh - 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 44px 24px;
}

:root .auth-entry .auth-card {
  width: min(460px, 100%);
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 28px #20202005;
}

:root .auth-entry .auth-intro {
  margin-bottom: 6px;
}

:root .auth-entry .auth-eyebrow {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 1.8px;
}

:root .auth-entry h1 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -.6px;
}

:root .auth-entry .auth-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

:root .auth-entry .segmented {
  gap: 4px;
  padding: 4px;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #f4f4f4;
}

:root .auth-entry button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

:root .auth-entry button:hover {
  border-color: #777777;
}

:root .auth-entry button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

:root .auth-entry .segmented button {
  min-height: 36px;
  padding: 7px 12px;
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}

:root .auth-entry .segmented button.active {
  border-color: #d5d5d5;
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

:root .auth-entry label {
  gap: 8px;
  color: #404040;
  font-size: 12px;
  font-weight: 500;
}

:root .auth-entry input {
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cccccc;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

:root .auth-entry input::placeholder {
  color: #888888;
  opacity: 1;
}

:root .auth-entry input:focus {
  border-color: #343434;
  outline: 2px solid #20202020;
  outline-offset: 1px;
}

:root .auth-entry :is(a, button):focus-visible {
  outline: 2px solid #343434;
  outline-offset: 3px;
}

:root .auth-entry .primary {
  min-height: 46px;
  border-color: #202020;
  background: #202020;
  color: #ffffff;
}

:root .auth-entry .primary:hover {
  border-color: #3b3b3b;
  background: #3b3b3b;
}

:root .auth-entry .or-line {
  gap: 12px;
  color: #858585;
  font-size: 11px;
  font-weight: 400;
}

:root .auth-entry .auth-google {
  min-height: 46px;
  border-color: #b8b8b8;
  background: #ffffff;
}

:root .auth-entry .auth-google:hover {
  background: #fafafa;
  border-color: #555555;
}

:root .auth-entry .link-button {
  min-height: 32px;
  justify-self: center;
  padding: 4px 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

:root .auth-entry .link-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

:root .auth-entry .inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

:root .auth-entry .inline-fields button {
  min-height: 46px;
  white-space: nowrap;
  font-size: 12px;
}

:root .auth-entry .notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bdbdbd;
  border-left: 3px solid #555555;
  border-radius: 5px;
  background: #f5f5f5;
  color: #343434;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

:root .auth-entry .auth-footnote {
  margin: 0;
  color: #7b7b7b;
  font-size: 10px;
  line-height: 1.9;
  text-align: center;
}

@media (max-width: 600px) {
  :root .auth-entry .auth-header {
    width: calc(100% - 36px);
    height: 80px;
    gap: 12px;
  }

  :root .auth-entry .auth-brand {
    gap: 7px;
    font-size: 19px;
  }

  :root .auth-entry .auth-brand svg {
    width: 30px;
    height: 30px;
  }

  :root .auth-entry .auth-home-link {
    gap: 7px;
    font-size: 11px;
  }

  :root .auth-entry .auth-content {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding: 28px 18px;
    gap: 18px;
  }

  :root .auth-entry .auth-card {
    gap: 14px;
    padding: 26px 23px;
    border-radius: 9px;
    box-shadow: none;
  }

  :root .auth-entry h1 {
    font-size: 23px;
  }

  :root .auth-entry input {
    font-size: 16px;
  }
}
