/*
 * Login / Sign Up page (partials/auth-page.blade.php). Sizes and spacing are
 * taken 1:1 from the design at 1280px: form column 380px centred on the left,
 * artwork 676x630 on the right, 24px under the header and 24px from the edge.
 */

.ae-auth {
  --au-purple: #6526DE;
  --au-lilac: #EEEEFE;
  --au-grey: #EFEFEF;
  --au-line: #CBCBCB;
  --au-font: 'Google Sans', 'Product Sans', 'Poppins', system-ui, sans-serif;

  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 24px 0;
  box-sizing: border-box;
  color: #000;
  font-family: var(--au-font);
  text-align: left;
}
.ae-auth *,
.ae-auth *::before,
.ae-auth *::after { box-sizing: border-box; }
.ae-auth [hidden] { display: none !important; }
.ae-auth p { margin: 0; }
.ae-auth button { font-family: inherit; }
.ae-auth .ae-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ columns */
.ae-auth__form-col {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 24px 4px;
}
.ae-auth__form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
}

.ae-auth__art {
  position: relative;
  flex: 0 1 676px;
  align-self: flex-start;
  overflow: hidden;
  aspect-ratio: 676 / 630;
  border-radius: 40px;
}
.ae-auth__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Mic artwork at its exact place in the design: 226,112 in a 676x630 box. */
.ae-auth__mic {
  position: absolute;
  top: 17.778%;
  left: 33.432%;
  width: 42.012%;
  height: auto;
}

/* ------------------------------------------------------------ tabs */
.ae-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 36px;
  border-radius: 18px;
  background: var(--au-grey);
}
.ae-auth .ae-auth__tab {
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ae-auth .ae-auth__tab:hover,
.ae-auth .ae-auth__tab:focus-visible { background: transparent; color: var(--au-purple); }
.ae-auth .ae-auth__tab[aria-selected="true"],
.ae-auth .ae-auth__tab[aria-selected="true"]:hover { background: var(--au-purple); color: #fff; }
.ae-auth__tabs.is-hidden { visibility: hidden; }

/* ------------------------------------------------------------ panels */
.ae-auth__panel { display: flex; flex-direction: column; margin: 0; }
.ae-auth .ae-auth__input {
  display: block;
  width: 100%;
  height: 47px;
  margin: 39px 0 0;
  padding: 0 20px 0 30px;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-family: var(--au-font);
  font-size: 13.5px;
  line-height: normal;
  box-shadow: none;
  outline: none;
}
.ae-auth .ae-auth__input + .ae-auth__input { margin-top: 22px; }
.ae-auth .ae-auth__input::placeholder { color: #6E6E6E; opacity: 1; }
.ae-auth .ae-auth__input:focus { border-color: var(--au-purple); box-shadow: 0 0 0 3px rgba(101, 38, 222, .12); }
.ae-auth .ae-auth__input.is-invalid { border-color: #DC2029; }

.ae-auth__forgot-row {
  display: flex;
  justify-content: flex-end;
  height: 20px;
  margin-top: 5px;
  padding-right: 13px;
}
.ae-auth .ae-auth__forgot,
.ae-auth .ae-auth__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--au-purple);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}
.ae-auth .ae-auth__forgot:hover,
.ae-auth .ae-auth__link:hover,
.ae-auth .ae-auth__forgot:focus-visible,
.ae-auth .ae-auth__link:focus-visible { background: none; color: var(--au-purple); text-decoration: underline; text-underline-offset: 3px; }

.ae-auth .ae-auth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 282px;
  max-width: 100%;
  height: 42px;
  margin: 44px auto 0;
  padding: 0 16px;
  border: 0;
  border-radius: 21px;
  background: var(--au-lilac);
  color: #000;
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.ae-auth .ae-auth__btn:hover,
.ae-auth .ae-auth__btn:focus-visible { background: #E4E4FC; color: #000; box-shadow: 0 0 0 2px rgba(101, 38, 222, .18); }
.ae-auth .ae-auth__btn[disabled] { opacity: .6; cursor: progress; }
.ae-auth .ae-auth__btn--google { margin-top: 17px; }
.ae-auth__g { display: block; flex: none; }

.ae-auth__or {
  margin-top: 20px;
  font-size: 21.5px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}
.ae-auth__msg {
  margin-top: 10px;
  color: #DC2029;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.ae-auth__msg.is-ok { color: #15803D; }

.ae-auth__lead {
  margin-top: 39px !important;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}
.ae-auth__lead + .ae-auth__input { margin-top: 18px; }
.ae-auth .ae-auth__link { display: block; margin: 16px auto 0; }
.ae-auth__links { display: flex; justify-content: center; gap: 24px; }
.ae-auth__links .ae-auth__link { margin: 16px 0 0; }

.ae-auth__terms {
  margin-top: 35px !important;
  color: #000;
  font-size: 13.5px;
  line-height: 17px;
  text-align: center;
}
.ae-auth__terms a { color: inherit; text-decoration: none; }
.ae-auth__terms a:hover { color: var(--au-purple); text-decoration: underline; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .ae-auth__art { flex-basis: 52%; }
}
@media (max-width: 860px) {
  .ae-auth { padding: 0 0 40px; }
  .ae-auth__art { display: none; }
  .ae-auth__form-col { padding: 16px; }
}
