/* Cognito login styles for legacy PHP auth pages. */

#auth0Lock,
#cognitoLoginBox {
  width: min(100%, 400px) !important;
  height: auto !important;
  margin: 32px auto 0;
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.m-login__wrapper .m-login__logo .dt_logo {
  width: min(80%, 360px);
  max-width: 360px;
  height: auto;
}

.cognito-social-buttons,
.cognito-email-form,
.cognito-otp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cognito-social-buttons {
  margin: 0 0 18px;
}

.cognito-btn-google,
.cognito-btn-facebook,
.cognito-btn-submit {
  width: 100%;
  min-height: 42px;
  border-radius: 4px;
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cognito-btn-social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 18px 0 56px;
  border: 1px solid #d9dde7;
  text-align: left;
  letter-spacing: 0;
  white-space: nowrap;
}

.cognito-btn-social:hover,
.cognito-btn-social:focus-visible {
  box-shadow: 0 4px 14px rgba(32, 45, 72, 0.12);
  outline: none;
}

.cognito-btn-social:active {
  transform: translateY(1px);
}

.cognito-provider-icon {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 100%;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.cognito-provider-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.cognito-provider-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cognito-btn-facebook {
  border-color: #4267a9;
  background: #4267a9;
  color: #fff;
  font-weight: 500;
}

.cognito-btn-facebook .cognito-provider-icon {
  background: #38599a;
  color: #fff;
  border-right-color: rgba(255, 255, 255, 0.16);
}

.cognito-btn-facebook:hover,
.cognito-btn-facebook:focus-visible {
  background: #385f9f;
  border-color: #385f9f;
}

.cognito-btn-google {
  background: #fff;
  color: #2f3542;
  font-weight: 400;
}

.cognito-btn-google .cognito-provider-icon {
  background: #f7f8fb;
}

.cognito-btn-google:hover,
.cognito-btn-google:focus-visible {
  background: #fbfcff;
  border-color: #c8d2e2;
}

.cognito-email-intro {
  margin: 0 0 14px;
  color: #232936;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.cognito-input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #d9dde7;
  border-radius: 4px;
  background: #fff;
  color: #1f2430;
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cognito-input::placeholder {
  color: #8b93a3;
}

.cognito-input:focus {
  border-color: #4d8df7;
  box-shadow: 0 0 0 3px rgba(77, 141, 247, 0.14);
}

.cognito-btn-submit {
  position: relative;
  display: block;
  margin-top: 2px;
  padding: 0 18px;
  border: 1px solid #3f70d7;
  background: #3f70d7;
  color: #fff;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cognito-btn-submit::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.cognito-btn-submit:hover,
.cognito-btn-submit:focus-visible {
  border-color: #3464c7;
  background: #3464c7;
  box-shadow: 0 4px 14px rgba(63, 112, 215, 0.22);
  outline: none;
}

.cognito-btn-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cognito-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f3c6c3;
  border-radius: 4px;
  background: #fdebea;
  color: #c43a31;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.cognito-terms {
  margin: 15px auto 0;
  max-width: 340px;
  color: #9aa2b2;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.cognito-terms a {
  color: #2f6fde;
  text-decoration: none;
}

.cognito-terms a:hover,
.cognito-terms a:focus-visible {
  text-decoration: underline;
}

.cognito-otp-header {
  margin-bottom: 16px;
  text-align: left;
}

.cognito-btn-back,
.cognito-btn-resend {
  border: none;
  background: none;
  color: #2f6fde;
  cursor: pointer;
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.cognito-btn-back {
  margin-bottom: 10px;
  padding: 0;
}

.cognito-btn-resend {
  align-self: center;
  margin-top: 6px;
  padding: 4px 0;
}

.cognito-btn-back:hover,
.cognito-btn-back:focus-visible,
.cognito-btn-resend:hover,
.cognito-btn-resend:focus-visible {
  text-decoration: underline;
  outline: none;
}

.cognito-otp-message {
  margin: 0;
  color: #3d4554;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1025px) {
  #auth0Lock,
  #cognitoLoginBox {
    width: min(100%, 380px) !important;
  }
}

@media (max-width: 479px) {
  #auth0Lock,
  #cognitoLoginBox {
    width: 100% !important;
    max-width: 340px;
    margin-top: 32px !important;
  }

  .m-login__wrapper .m-login__logo .dt_logo {
    width: min(78vw, 300px);
  }

  .cognito-btn-social {
    min-height: 44px;
    padding-right: 14px;
    padding-left: 52px;
  }

  .cognito-provider-icon {
    width: 40px;
  }

  .cognito-email-intro {
    font-size: 12px;
    text-align: center;
  }

  .cognito-terms {
    max-width: 300px;
  }
}
