.auth-page__card {
  width: min(100%, 31rem);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  margin: 0 auto;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--white);
  border: 1px solid rgba(63, 98, 151, 0.24);
  border-top: 3px solid var(--wp--preset--color--yellow);
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2.5rem rgba(8, 32, 71, 0.1);
}

.auth-page__form {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.auth-page__field label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--wp--preset--color--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.auth-page__field input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--white);
  border: 1px solid rgba(63, 98, 151, 0.48);
  border-radius: 0.4rem;
  font: inherit;
  line-height: 1.2;
}

.auth-page__field input:focus {
  border-color: var(--wp--preset--color--blue);
  outline: 3px solid rgba(16, 46, 92, 0.15);
  outline-offset: 1px;
}

.auth-page__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--navy);
  font-size: 0.84rem;
  font-weight: 650;
}

.site-main form.mentorio-form:not(.site-search):not(.mentorio-contact) > label.auth-page__checkbox:not(.screen-reader-text) {
  flex-direction: row;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  min-height: 3rem;
  margin: 0;
  color: #37475b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375rem;
  cursor: pointer;
}

.auth-page__checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.auth-page__form button {
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--yellow);
  border: 0;
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.auth-page__form button:hover,
.auth-page__form button:focus-visible {
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--blue);
}

.auth-page__notice {
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(63, 98, 151, 0.22);
  border-left: 4px solid var(--wp--preset--color--yellow);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-page__notice--success {
  color: var(--wp--preset--color--navy);
  background: #f2f6fb;
}

.auth-page__notice--error {
  color: #8d1515;
  background: #fff1f1;
  border-color: #e6aaaa;
  border-left-color: #c43c3c;
}

.auth-page__form-help,
.auth-page__footer {
  margin: 1rem 0 0;
  color: var(--wp--preset--color--gray);
  font-size: 0.87rem;
  line-height: 1.55;
}

.auth-page__footer a {
  color: var(--wp--preset--color--blue);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.auth-page__footer a:hover,
.auth-page__footer a:focus-visible {
  color: var(--wp--preset--color--navy);
}

.auth-page__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Email domain suggestions under the registration email field. */
.email-suggest-field { position: relative; }
.email-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: 18rem;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  list-style: none;
  background: var(--wp--preset--color--white);
  border: 1px solid #dce3ef;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.25rem rgba(8, 32, 71, 0.08);
}
.email-suggest[hidden] { display: none; }
.email-suggest li {
  padding: 0.6rem 0.7rem;
  border-radius: 0.35rem;
  color: var(--wp--preset--color--navy);
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.email-suggest li:hover,
.email-suggest li[aria-selected="true"] { background: #eef3fa; }
.email-suggest__domain { color: #2f6fd6; font-weight: 700; }

/* Sign in with Google / GitHub: inside the form card, up to four per row. */
.auth-social {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.auth-social__label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem; /* same space below the line as the form gap above it */
  color: var(--wp--preset--color--gray);
  font-size: 0.8rem;
  line-height: 1;
}

.auth-social__label::before,
.auth-social__label::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(63, 98, 151, 0.18);
}

.site-main .auth-social__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.5rem;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--white);
  border: 1px solid rgba(63, 98, 151, 0.3);
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease;
}

.auth-social__button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-social__button i {
  flex: none;
  font-size: 1.25rem;
}

.auth-social__button--google i { color: #4285f4; }
.auth-social__button--github i { color: #181717; }

.site-main .auth-social__button:hover,
.site-main .auth-social__button:focus-visible {
  color: var(--wp--preset--color--navy);
  border-color: var(--wp--preset--color--blue);
}

.auth-social__button:focus-visible {
  outline: 3px solid rgba(16, 46, 92, 0.15);
  outline-offset: 1px;
}

@media (max-width: 420px) {
  .auth-social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
