/* stylelint-disable-next-line selector-class-pattern */
.ReactModal__Overlay {
  z-index: 1000;
}

body {
  background-color: var(--background-color);
  color: var(--primary-color);
}

.login.is-electron {
  input.validate:invalid {
    box-shadow: 0 0 1.5px 1px var(--tertiary-highlight-color);
  }

  input.validate:invalid:focus {
    outline-color: var(--tertiary-highlight-color);
  }
}

.login {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  form {
    width: 95%;
  }

  h1 {
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
  }

  .login__auth-message {
    font-size: 16px;
    margin: 0 auto 16px;
    max-width: 347px;
    text-align: center;
    width: 90%;

    &.is-error {
      color: var(--tertiary-highlight-color);
    }
  }

  label {
    display: none;
  }

  input,
  button[type='submit'] {
    background-color: var(--background-color);
    border: solid 1px var(--secondary-accent-color);
    border-radius: 4px;
    box-sizing: border-box;
    color: var(--primary-color);
    display: block;
    height: 40px;
    padding: 11px 15px;
    margin: 8px auto 0;
    max-width: 320px;
    width: 95%;
    font-size: 16px;
    font-weight: 400;
  }

  input:read-only,
  input:disabled {
    border-color: var(--readonly-input-highlight-color);
    background-color: var(--readonly-input-color);
  }

  input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
    outline: none;
  }

  .spinner {
    vertical-align: middle;
  }

  button[type='submit'] {
    background-color: var(--primary-button-bg-color);
    border: none;
    color: var(--primary-button-fg-color);
    font-weight: 500;
    margin: 16px auto 8px;
    padding: 0 15px 2px;
  }

  a.login__forgot {
    color: var(--accent-color);
    text-decoration: none;
  }

  .login__forgot,
  .login__signup,
  .terms {
    color: var(--foreground-color);
    display: block;
    font-size: 14px;
    margin: 16px auto;
    max-width: 320px;
    text-align: center;
  }

  .login__signup a,
  .login__auth-message a,
  .terms a {
    color: var(--accent-color);
    margin-left: 5px;
    text-decoration: none;
    white-space: nowrap;
  }

  .or {
    background: var(--background-color);
    color: var(--foreground-color);
    display: block;
    font-size: 15px;
    font-style: italic;
    height: 20px;
    position: relative;
    margin: 10px auto;
    text-align: center;
    width: 50px;
    z-index: 1;
  }

  .or-line {
    border-bottom: 1px solid var(--disabled-text-color);
    margin: -20px auto;
    max-width: 320px;
    text-align: center;
    width: 95%;
    position: relative;
    display: block;
  }

  .wpcc-button {
    background-color: var(--wordpress-color);
    border-radius: 4px;
    box-sizing: border-box;
    color: var(--primary-button-fg-color);
    display: block;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    padding: 0 15px 2px;
    margin: 50px auto 10px;
    max-width: 320px;
    text-align: center;
    text-decoration: none;
    width: 95%;
  }
}

.account-requested {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  width: 320px;

  .button {
    width: 95%;
  }

  .or-section {
    display: block;
    min-height: 40px;
    margin-top: 16px;
  }

  svg.icon-mail {
    color: var(--foreground-color);
    width: 60px;
    height: 60px;
  }

  .account-requested__code {
    margin: 16px auto;
  }

  .account-requested__password-button {
    margin-bottom: 16px;
  }

  .account-requested__footer {
    font-size: 14px;
    line-height: 20px;
  }
}
