/* Aurify — log in and sign up (/login/, /signup/), in the site's glass style:
   light type, a bevelled glass card, dark fields, a white 10px button.
   Markup: the aurify/auth block (auth-functions.php) inside .aurify-auth-page,
   the .topo-host wrapper that gives the page its ambient glow.
   Loaded only where the block renders. */

.aurify-auth-page {
  --auth-line: rgba(255, 255, 255, .14);
  --auth-muted: rgba(255, 255, 255, .62);
  --auth-ease: cubic-bezier(.16, 1, .3, 1);

  min-height: 100vh;
  color: #fff;
  font-family: "Outfit", sans-serif;
}

/* Starts at the very top, under the floating header (no block gap above). */
.wp-site-blocks > .aurify-auth-page {
  margin-block-start: 0;
}

.aurify-auth-page > :not(.aurify-ambient-glow-bg) {
  position: relative;
  z-index: 1;
}

.aurify-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 !important;
  padding: 136px 16px 88px;
}

.aurify-auth,
.aurify-auth *,
.aurify-auth *::before,
.aurify-auth *::after {
  box-sizing: border-box;
}

.aurify-auth {
  width: min(440px, 100%);
}

/* ==========================================================
   CARD
========================================================== */

.aurify-auth__card {
  position: relative;
  isolation: isolate;
  padding: 36px 32px 30px;
  border-radius: 24px;
  /* Light stays inside the card. */
  background:
    radial-gradient(60% 46% at 12% 0%, rgba(255, 63, 127, .13), transparent 72%),
    radial-gradient(52% 40% at 100% 100%, rgba(0, 223, 202, .09), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, .04)),
    rgba(10, 14, 18, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 22px 34px -26px rgba(255, 255, 255, .28),
    inset 0 -18px 30px -26px rgba(255, 255, 255, .12),
    0 24px 60px rgba(0, 0, 0, .35);
}

/* The glass rim: light catches the top-left and bottom-right edges. */
.aurify-auth__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.25px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .1) 26%, rgba(255, 255, 255, .03) 52%, rgba(255, 255, 255, .1) 76%, rgba(255, 255, 255, .42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.aurify-auth__head {
  margin: 0 0 24px;
  text-align: center;
}

.aurify-auth__title {
  margin: 0 !important;
  color: #fff;
  font-family: inherit;
  font-size: clamp(30px, 7vw, 38px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.aurify-auth__lead {
  margin: 10px 0 0 !important;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.5;
}

.aurify-auth__lead strong {
  color: #fff;
  font-weight: 500;
}

/* ==========================================================
   MESSAGES (WooCommerce notices, the booking note)
========================================================== */

.aurify-auth__notices {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.aurify-auth__notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid #f4c46c;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.aurify-auth__notice.is-error {
  border-left-color: #ff8f80;
}

.aurify-auth__notice.is-ok {
  border-left-color: #7ee2a8;
}

.aurify-auth__notice strong {
  color: #fff;
  font-weight: 500;
}

.aurify-auth__notice a,
.aurify-auth .aurify-book-notice a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

/* service-access-functions.php's note, when the visit comes from a booking */
.aurify-auth .aurify-book-notice {
  margin: 0 0 18px;
}

/* ==========================================================
   FORM
========================================================== */

.aurify-auth__form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.aurify-auth__field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.aurify-auth__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.aurify-auth__label {
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.aurify-auth__aside {
  color: var(--auth-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .16s ease;
}

.aurify-auth__aside:hover {
  color: #fff;
}

.aurify-auth__input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming in */
  line-height: 1.2;
  transition: border-color .16s ease, background-color .16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.aurify-auth__input::placeholder {
  color: rgba(255, 255, 255, .34);
}

.aurify-auth__input:hover {
  border-color: rgba(255, 255, 255, .22);
}

.aurify-auth__input:focus {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .065);
  outline: 0;
}

/* Browser autofill keeps the dark field. */
.aurify-auth__input:-webkit-autofill,
.aurify-auth__input:-webkit-autofill:hover,
.aurify-auth__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #17181d inset;
  transition: background-color 9999s ease-out 0s;
}

.aurify-auth__hint {
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Password with a show/hide button inside the field */
.aurify-auth__pass {
  position: relative;
}

.aurify-auth__pass .aurify-auth__input {
  padding-right: 50px;
}

.aurify-auth__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .16s ease, background-color .16s ease;
}

.aurify-auth__eye:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.aurify-auth__eye svg {
  width: 20px;
  height: 20px;
}

.aurify-auth__eye .is-shown,
.aurify-auth__eye[aria-pressed="true"] .is-hidden {
  display: none;
}

.aurify-auth__eye[aria-pressed="true"] .is-shown {
  display: block;
}

/* Keep me logged in */
.aurify-auth__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.aurify-auth__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aurify-auth__box {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  transition: background-color .16s ease, border-color .16s ease;
}

.aurify-auth__box::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #0b0f12;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s ease, transform .3s var(--auth-ease);
}

.aurify-auth__check:hover .aurify-auth__box {
  border-color: rgba(255, 255, 255, .5);
}

.aurify-auth__check input:checked + .aurify-auth__box {
  border-color: #fff;
  background: #fff;
}

.aurify-auth__check input:checked + .aurify-auth__box::after {
  opacity: 1;
  transform: none;
}

/* Not for people: bots fill every field. */
.aurify-auth__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aurify-auth__privacy {
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12.5px;
  line-height: 1.5;
}

.aurify-auth__privacy a {
  color: rgba(255, 255, 255, .78);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 2px;
}

/* ==========================================================
   BUTTONS
========================================================== */

.aurify-auth__submit,
.aurify-auth__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 4px 0 0;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0b0f12;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, transform .2s ease, opacity .16s ease;
}

.aurify-auth__submit:hover,
.aurify-auth__button:hover {
  background: rgba(255, 255, 255, .86);
  color: #0b0f12;
}

.aurify-auth__submit:active,
.aurify-auth__button:active {
  transform: scale(.98);
}

.aurify-auth__button.is-quiet {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.aurify-auth__button.is-quiet:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Sending: the label fades and a small ring turns in its place. */
.aurify-auth__submit {
  position: relative;
}

.aurify-auth__submit.is-busy {
  color: transparent;
  pointer-events: none;
}

.aurify-auth__submit.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(11, 15, 18, .22);
  border-top-color: #0b0f12;
  border-radius: 50%;
  animation: aurify-auth-spin .7s linear infinite;
}

@keyframes aurify-auth-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   OR + GOOGLE (Nextend Social Login)
========================================================== */

.aurify-auth__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  color: rgba(255, 255, 255, .42);
  font-size: 13px;
}

.aurify-auth__or::before,
.aurify-auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .12);
}

.aurify-auth__social div.nsl-container {
  display: block;
  margin: 0;
}

.aurify-auth__social div.nsl-container .nsl-container-buttons {
  display: block !important;
  padding: 0 !important;
}

.aurify-auth__social div.nsl-container .nsl-container-buttons a {
  display: block;
  width: 100%;
  margin: 0 !important;
}

.aurify-auth__social div.nsl-container .nsl-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06) !important;
  box-shadow: none !important;
  color: #fff !important;
  transition: background-color .16s ease, border-color .16s ease;
}

.aurify-auth__social div.nsl-container .nsl-button:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1) !important;
}

.aurify-auth__social div.nsl-container .nsl-button-svg-container {
  flex: 0 0 auto;
  padding: 0;
}

.aurify-auth__social div.nsl-container svg {
  width: 20px;
  height: 20px;
}

.aurify-auth__social div.nsl-container .nsl-button-default div.nsl-button-label-container {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.aurify-auth__social div.nsl-container .nsl-button-label-container b {
  font-weight: 500;
}

/* ==========================================================
   FOOTER LINK
========================================================== */

.aurify-auth__switch {
  margin: 22px 0 0 !important;
  color: var(--auth-muted);
  font-size: 14px;
  text-align: center;
}

.aurify-auth__switch a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color .16s ease;
}

.aurify-auth__switch a:hover {
  text-decoration-color: #fff;
}

/* The "check your email" and "link expired" screens */
.aurify-auth__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #fff;
}

.aurify-auth__icon svg {
  width: 24px;
  height: 24px;
}

.aurify-auth__actions {
  display: grid;
  gap: 10px;
}

/* ==========================================================
   PHONES
========================================================== */

@media (max-width: 600px) {
  .aurify-auth-main {
    padding: 112px 14px 64px;
  }

  .aurify-auth__card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .aurify-auth__head {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurify-auth *,
  .aurify-auth *::before,
  .aurify-auth *::after {
    transition: none !important;
  }

  .aurify-auth__submit.is-busy::after {
    animation-duration: 1.6s;
  }
}
