/*
 * Glean login branding for the Cognito classic hosted UI.
 *
 * Cognito only accepts a fixed allow-list of selectors/properties here
 * (see "Customizing the built-in sign-in and sign-up webpages" in the
 * Cognito developer guide); anything else makes SetUICustomization fail.
 * Font family, body background, and corner radius are injected by the
 * login HTML rewrite because this allow-list rejects them.
 *
 * Tokens from the Glean login screen:
 *   typescript/web/css/light-theme.css
 *     --theme-background #ffffff
 *     --theme-secondary-ivory #f6f3eb          (page background, injected)
 *     --theme-text-primary #1b1b1b
 *     --theme-text-secondary #727272
 *     --theme-primary-highlight #1b1b1b
 *     --theme-primary-hover #404040
 *     --theme-alternate #ffffff
 *     --theme-border-dark #ccc
 *     --theme-background-mid #f0f0f0
 *     --theme-error #e02e2a
 *     --theme-error-background #feebef
 *     --theme-success #27ae60
 *   typescript/web/login/lib/theme.ts          backgroundColor ivory
 *   typescript/web/login/components/styles/LoginHandlerStyles.css.ts
 *     logo height 40, width 110
 *   typescript/elements/Button/Button.css.ts   primary fill, medium weight
 *   typescript/elements/Input/BaseInput.css.ts lg input height 48, radius 12
 *   typescript/core/theme/tokens.ts            borderRadiusFull 9999 (injected)
 *   typescript/core/theme/Fonts.css.ts         Inter, heading2 26/36, weight 500
 */

.background-customizable {
  background-color: #ffffff;
}

.banner-customizable {
  padding: 20px 0 12px 0;
  background-color: #ffffff;
}

.logo-customizable {
  max-width: 110px;
  max-height: 40px;
}

.label-customizable {
  font-weight: 700;
}

.textDescription-customizable {
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
  font-size: 16px;
}

.idpDescription-customizable {
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
  font-size: 16px;
}

/* Cognito legal text. A new selector here would fail SetUICustomization. */
.legalText-customizable {
  color: #727272;
  font-size: 12px;
}

.inputField-customizable {
  width: 100%;
  height: 48px;
  color: #1b1b1b;
  background-color: #ffffff;
  border: 1px solid #cccccc;
}

.inputField-customizable:focus {
  border-color: #1b1b1b;
}

.submitButton-customizable {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px 0;
  padding: 0 16px;
  width: 100%;
  height: 34px;
  color: #ffffff;
  background-color: #1b1b1b;
}

.submitButton-customizable:hover {
  color: #ffffff;
  background-color: #404040;
}

.idpButton-customizable {
  height: 34px;
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  color: #1b1b1b;
  background-color: #ffffff;
  border-color: #cccccc;
}

.idpButton-customizable:hover {
  color: #1b1b1b;
  background-color: #f0f0f0;
}

.socialButton-customizable {
  border-radius: 6px;
  height: 44px;
  text-align: left;
  width: 100%;
  margin-bottom: 15px;
}

.errorMessage-customizable {
  padding: 8px;
  font-size: 14px;
  width: 100%;
  background: #feebef;
  border: 1px solid #e02e2a;
  color: #e02e2a;
}

.redirect-customizable {
  text-align: center;
}

.passwordCheck-notValid-customizable {
  color: #e02e2a;
}

.passwordCheck-valid-customizable {
  color: #27ae60;
}
