/* Compact authentication modal shared by Login and Sign Up. */
.auth-dialog {
  width: min(420px, calc(100% - 28px));
  max-width: 420px;
  max-height: none;
  overflow: hidden;
  padding: 26px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: #142018;
  box-shadow: 0 28px 90px rgba(20, 32, 24, .2);
}

.auth-dialog::backdrop {
  background: rgba(16, 25, 19, .62);
  backdrop-filter: blur(6px);
}

.auth-dialog .auth-brand {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
}

.auth-dialog .auth-brand > img {
  display: block;
  width: 160px;
  height: auto;
}

.auth-dialog .auth-close-icon {
  position: static;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3ef;
  color: #263329;
}

.auth-dialog .auth-close-icon:hover {
  background: #e7ebe5;
}

.auth-dialog .auth-close-icon svg {
  width: 16px;
  height: 16px;
}

.auth-dialog h2 {
  margin: 0 0 7px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1px;
}

.auth-dialog #auth-description {
  margin: 0 0 20px;
  color: #717970;
  font-size: 12px;
  line-height: 1.55;
}

.auth-dialog .auth-context {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border: 1px solid #dce7d7;
  border-radius: 12px;
  background: #f3f7ef;
  color: #465d48;
  font-size: 10px;
  line-height: 1.5;
}

.auth-dialog .google-button,
.auth-dialog .auth-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.auth-dialog .google-button {
  border: 1px solid #dfe4dc;
  background: #fff;
  color: #172219;
}

.auth-dialog .google-button:hover {
  background: #f7f9f5;
  border-color: #cfd7cd;
}

.auth-dialog .google-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.auth-dialog .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #929990;
  font-size: 9px;
  letter-spacing: .25px;
}

.auth-dialog .auth-divider::before,
.auth-dialog .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e8ebe6;
}

.auth-dialog #email-signup-form {
  margin: 0;
}

.auth-dialog label[for="signup-email"] {
  display: block;
  margin: 0 0 7px;
  color: #596158;
  font-size: 10px;
  font-weight: 600;
}

.auth-dialog .auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 1px solid #dfe4dc;
  border-radius: 999px;
  background: #fafbf9;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-dialog .auth-input:focus-within {
  border-color: #5a795d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(90, 121, 93, .1);
}

.auth-dialog .auth-input svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #7c857a;
}

.auth-dialog .auth-input input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172219;
  font-size: 13px;
}

.auth-dialog .auth-input input:focus-visible {
  outline: 0;
}

.auth-dialog .auth-input input::placeholder {
  color: #9da39b;
}

.auth-dialog .auth-continue {
  margin-top: 10px;
  border: 1px solid #16221a;
  background: #16221a;
  color: #fff;
}

.auth-dialog .auth-continue:hover {
  background: #26362b;
  border-color: #26362b;
}

.auth-dialog .auth-continue svg {
  width: 15px;
  height: 15px;
}

.auth-dialog button:disabled {
  cursor: wait;
  opacity: .58;
}

.auth-dialog .auth-note,
.auth-dialog .auth-terms {
  margin: 9px 0 0;
  color: #8a9188;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.auth-dialog .auth-switch {
  margin: 14px 0 0;
  text-align: center;
}

.auth-dialog .auth-switch button,
.auth-dialog .auth-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #415d45;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-dialog .auth-feedback {
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid #efd7cc;
  border-radius: 14px;
  background: #fff5f0;
  color: #8a442d;
  font-size: 10px;
  line-height: 1.45;
}

.auth-dialog .auth-mail-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  border-radius: 15px;
  background: #edf5e5;
  color: #45684a;
}

.auth-dialog .auth-mail-icon svg {
  width: 21px;
  height: 21px;
}

.auth-dialog #auth-sent > p {
  margin: 7px 0;
  color: #6f776e;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.auth-dialog #auth-sent .auth-continue {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
}

.auth-dialog #auth-sent .auth-text-button {
  display: block;
  margin: 12px auto 0;
}

@media (max-width: 480px) {
  .auth-dialog {
    width: calc(100% - 24px);
    padding: 22px 20px;
    border-radius: 24px;
  }

  .auth-dialog .auth-brand {
    margin-bottom: 17px;
  }

  .auth-dialog .auth-brand > img {
    width: 145px;
  }

  .auth-dialog h2 {
    font-size: 25px;
  }

  .auth-dialog #auth-description {
    margin-bottom: 17px;
  }

  .auth-dialog .google-button,
  .auth-dialog .auth-input,
  .auth-dialog .auth-continue {
    height: 42px;
    min-height: 42px;
  }

  .auth-dialog .auth-input input {
    height: 40px;
  }
}

@media (max-height: 560px) {
  .auth-dialog {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .auth-dialog .auth-brand {
    margin-bottom: 12px;
  }

  .auth-dialog #auth-description {
    margin-bottom: 12px;
  }

  .auth-dialog .auth-divider {
    margin: 11px 0;
  }

  .auth-dialog .auth-switch {
    margin-top: 10px;
  }
}
