@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

@font-face {
  font-family: 'Flexo-Regular';
  src: local('Nunito'), local('Nunito-Regular');
  font-weight: 400;
}

@font-face {
  font-family: 'Flexo-Bold';
  src: local('Nunito Bold'), local('Nunito-Bold');
  font-weight: 700;
}

@font-face {
  font-family: 'Flexo-Heavy';
  src: local('Nunito Black'), local('Nunito-Black');
  font-weight: 900;
}

/* Fallback: apply Nunito directly to all Flexo font usages */
* {
  font-family: 'Nunito', sans-serif;
}

::-ms-reveal {
  display: none;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.background-mascots {
  position: sticky;
  z-index: -100;
  margin-top: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  max-width: 443px;
  align-self: center;
}

.body-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.base-container-border {
  margin-top: 20px;
  padding: 30px 0;
}

.body-wrapper {
  margin-left: 13px;
  margin-right: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 355px;
}

.sign-in-form,
.mfa-code-input-form {
  display: flex;
  width: 100%;
  justify-content: center;
}

.username-input,
.op-pin-input,
.name-input,
.screen-name-input {
  padding: 8px;
  margin-bottom: 10px;
}

.main-content .player-id-input {
  border: solid grey 2px;
  border-radius: 5px;
  align-self: center;
  padding: 8px;
  background-color: white;
  width: 100%;
  margin-bottom: 10px;
}

.main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.main-content .input {
  position: relative;
  max-width: 480px;
  box-sizing: border-box;
  align-self: center;
  border-radius: 5px;
  background-color: #313131;
  color: white;
  border: 4px solid transparent;
  font-size: 14px;
  font-family: Flexo-Regular, serif;
  display: block;
  width: 100%;
  max-height: 100%;
  z-index: 0;
}

.main-content .input:not(.password-input):focus {
  border: 4px solid #e6bc2f;
  border-radius: 3px;
  outline: none;
}

.main-content .input-wrapper {
  display: flex;
  flex-direction: column;
}

h2 {
  font-family: "Flexo-Heavy", serif;
  margin: 0;
  margin-bottom: 10px;
  text-align: center;
  font-size: 24px;
}

label {
  font-family: "Flexo-Regular", serif;
  font-size: 14px;
  margin-bottom: 5px;
}

.form-message {
  font-family: "Flexo-Regular", serif;
  font-size: 14px;
  color: #4e4e4e;
  text-align: center;
}

.generic-link,
.forgot-username-link,
.forgot-password-link,
.terms-link,
.mfa-access-problem-link {
  font-family: "Flexo-Regular", serif;
  font-size: 12px;
  color: #2fa7db;
  align-self: flex-end;
  text-decoration: none;
  margin-bottom: 10px;
  margin-top: 5px;
}

.button {
  height: 40px;
  width: 100%;
  margin-top: 0.625em;
  border-radius: 0.3em;
  border: none;
  font-size: 0.875em;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Flexo-Heavy", serif;
  cursor: pointer;
  color: white;
}

.sign-in-button,
.set-screen-button,
.set-state-button,
.set-first-and-last-name-button,
.set-opt-in-button,
.mfa-verify-button,
.continue-button,
.return-button {
  font-family: "Flexo-Bold", serif;
  font-size: 16pt;
  color: white;
  background-color: #4dad5b;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 480px;
  align-self: center;
  height: 50px;
  border-radius: 5px;
  padding-top: 1px;
  padding-bottom: 0;
  border: none;
  cursor: pointer;

  /* fix for rendering in iOS */
  -webkit-appearance: none;
}

@media (forced-colors: active) or (-ms-high-contrast: active) {
  .sign-in-button,
  .mfa-verify-button {
    border-width: 4px !important;
    border-style: solid !important;
  }
}

a#trouble-logging-in {
  font-family: "Flexo-Regular", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  color: #31a7d9;
}

.sign-in-button,
.set-screen-button,
.set-state-button,
.green-button {
  background-color: #4dad5b;
}

.deny-button,
.red-button {
  background-color: #a83246;
}

.redirect-button,
.button-secondary {
  border: 1px solid #4dad5b;
  color: #4dad5b;
  background-color: white;
}

.button-disabled,
.input-disabled,
.main-content button.input-disabled,
.main-content input.input-disabled {
  background-color: #a4a4a4;
  color: #616161;
  pointer-events: none;
}

.create-account-link {
  align-self: center;
  text-decoration: none;
  color: black;
  font-family: "Flexo-Regular", serif;
  margin-top: 20px;
}

.return-to-login-link {
  align-self: center;
  text-decoration: none;
  color: black;
  font-family: "Flexo-Regular", serif;
  margin-top: 4px;
}

.consent-text {
  align-self: center;
  text-decoration: none;
  color: black;
  font-family: "Flexo-Regular", serif;
  font-size: 11pt;
  list-style-type: none;
  border: thin solid #000;
  padding: 5px;
}

.hide-account-link {
  display: none;
}

@media (orientation: portrait) {
  .hide-in-portrait {
    display: none;
  }
}

.header-container {
  display: flex;
  flex-direction: column;
  height: 20%;
}

.logo-container-top {
  display: flex;
  justify-content: center;
  height: 75%;
  background-color: #313131;
  margin-bottom: -1px;
}

.logo {
  height: 100%;
}

.logo-container-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-height: 30px;
}

.logo-corner {
  height: 100%;
}

.cornerTopLeft {
  align-self: flex-start;
}

.logo-corner-right {
  align-self: flex-end;
}

.logo-corner-top-right {
  transform: scaleX(-1);
}

.logo-wrapper {
  display: flex;
  height: 80px;
  margin-top: 0;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
}

.footer-container-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
}

.footer-padding {
  background: #313131;
  height: 60px;
  margin-top: -5px;
}

.copyright {
  font-size: 10px;
  color: #4e4e4e;
  font-family: "Flexo-Regular", serif;
  text-align: center;
  white-space: pre-line;
  margin: 2px;
}

.error-wrapper {
  display: none;
  text-align: center;
}

.show-error {
  display: flex;
}

.hide-error,
.hide-character-error,
.hide-length-error {
  display: none;
}

.error-message {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 11pt;
  font-family: "Flexo-Regular", serif;
  color: #c33527;
  text-align: center;
}

.password-input-field-wrapper,
.name-field-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #313131;
  height: 41px;
  border-radius: 5px;
  border: 4px solid transparent;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.input.password-input {
  border: none;
  padding-left: 8px;
  height: 100%;
}

.password-input:focus {
  outline: 0;
}

.visibility-icon {
  height: 20px;
  width: 20px;
  margin: 0 10px;
  border: 4px solid transparent;
  box-sizing: border-box;
  z-index: 2;
  background-color: transparent;
  background-repeat: no-repeat;
  background-origin: border-box;
}

.visibility-icon.hide-password {
  background-image: url("/images/showpassword.svg");
}

.visibility-icon.show-password {
  background-image: url("/images/hidepassword.svg");
}

input:focus + .visibility-icon {
  float: right;
  right: 4px;
}

.main-content .username-input:focus,
.password-input-field-wrapper-focused {
  border: 4px solid #e6bc2f;
  border-radius: 3px;
  outline: none;
}

.scope-item {
  margin-top: 0;
  margin-bottom: 0;
}

.tooltip {
  position: relative;
  display: inline;
  float: right;
  margin-right: 1em;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 275px;
  background-color: #555;
  color: #fff;
  padding: 0;
  border-radius: 6px;
  position: absolute;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip-icon {
  display: block;
  width: 1em;
}

.links-list {
  text-align: right;
  list-style-type: none;
  margin-block-end: 0;
  padding: 0;
}

.links-list-left {
  text-align: left;
  list-style-type: none;
  margin-block-end: 0;
  margin-top: 0;
  padding: 0;
}

.links-list.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mfa-recovery-header {
  color: var(--text-primary, rgba(0, 0, 0, 0.87));
  text-align: center;
  font-family: "Flexo-Bold", serif;
  font-size: 24px;
}

.mfa-recovery-text {
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  font-family: "Flexo-Regular", serif;
  text-align: center;
  line-height: 21px;
}

.mfa-contact-us-button {
  border: 1px solid #31833e;
  color: #31833e;
  background-color: white;
  font-family: "Flexo-Bold", serif;
  margin-bottom: 4px;

  /* margin-top: 16px; */
}

.mfa-return-login-button {
  border: 1px solid #31833e;
  color: #31833e;
  background-color: white;
  font-family: "Flexo-Bold", serif;
  margin-bottom: 16px;

  /* margin-top: 4px; */
}

@media only screen and (min-width: 576px) {
  body {
    background-image: url("https://static.prod.pokemon.com/images/pikachu_pattern.png");
    background-repeat: repeat;
  }

  .base-body {
    background-color: darkgrey;
  }

  .base-container-border {
    border-radius: 15px;
    width: 420px;
    margin-top: 50px;
    align-self: center;
    background-color: white;
    border-width: 0;
    color: #212529;
    filter: drop-shadow(0 3px 15px rgba(0, 0, 0, 0.3));
  }

  .background-mascots {
    width: unset;
    margin-top: unset;
    padding-left: unset;
    padding-right: unset;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
  }
}

.language-notice-wrapper {
  position: relative;
}

.language-notice {
  border: solid black 2px;
  padding: 10px;
  border-radius: 25px;
  background: #ddd;
  font-family: Flexo-Regular, serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mfa-code-input {
  border: solid grey 2px;
  border-radius: 5px;
  align-self: center;
  padding: 2px;
  background-color: white;
  width: 1.5em;
}

.mfa-code-input-wrapper {
  display: flex;
  flex-direction: row;
  align-content: space-between;
  gap: 0.4em;
}

.mfa-prompt-subtitle {
  font-family: "Flexo-Regular", serif;
  font-size: 14pt;
  margin: 0 auto 5px;
  text-align: center;
}

.mfa-prompt-heading {
  margin-bottom: 8px;
}

.close-button {
  display: block;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.name-input {
  padding: 8px;
  margin-bottom: 8px;
  position: relative;
  box-sizing: border-box;
  align-self: center;
  border-radius: 5px;
  border: 4px solid transparent;
  font-size: 14px;
  font-family: Flexo-Regular, serif;
  display: block;
  width: 100%;
  max-height: 100%;
}

.first-last-name-form {
  width: 100%;
  padding: 16px;
}

.idp-login {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.alt-login {
  display: flex;
  width: 345px;
  height: 21px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
}

.alt-login-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  background: rgba(0, 0, 0, 0.12);
  height: 1px;
}

.alt-login-text {
  font-size: 14px;
  font-family: Flexo-Regular, serif;
}

.idp-providers {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px;
  align-self: stretch;
  flex-wrap: wrap;
}

.logo-trainer-branding-img {
  display: block;
  margin: 0 auto 20px;
  align-self: center;
  width: 320px;
  height: 109px;
}
