/* Account and admin screens: centred title, pill fields, live password checklist. */
.auth {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 57px 40px;
}

.auth--narrow {
  max-width: 560px;
  padding-top: 48px;
}

.auth__title {
  margin: 0;
  color: var(--brand);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.auth--narrow .auth__title {
  color: var(--text);
  font-weight: 500;
  font-size: 34px;
}

.auth__sub {
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
}

.auth--narrow .auth__sub {
  color: var(--text);
  font-size: 18px;
}

.auth__noscript {
  margin: 16px 0 0;
  text-align: center;
}

.auth__noscript a,
.auth__links a,
.auth__switch a {
  color: var(--brand);
}

.auth__form {
  margin-top: 56px;
}

.auth--narrow .auth__form {
  margin-top: 32px;
}

/* Pill-shaped variant of the shared outlined field. */
.auth .field {
  margin-bottom: 22px;
}

.auth .field__control {
  border: 1px solid #e0e0e0;
  border-radius: 34px;
  padding: 20px 56px 20px 24px;
  font-size: 18px;
}

.auth .field__control:focus {
  border: 2px solid var(--brand);
  padding: 19px 55px 19px 23px;
}

.auth .field__label {
  left: 20px;
  top: 21px;
  color: rgba(0, 0, 0, 0.87);
}

.auth .auth-field--icon .field__control {
  padding-left: 56px;
}

.auth .auth-field--icon .field__control:focus {
  padding-left: 55px;
}

.auth .auth-field--icon .field__label {
  left: 52px;
}

.auth .field__control:focus + .field__label,
.auth .field__control:not(:placeholder-shown) + .field__label {
  top: -9px;
  left: 20px;
  font-size: 13px;
}

.auth .field--error .field__control {
  border-color: #d32f2f;
}

.auth-field__icon {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  color: var(--brand);
  pointer-events: none;
}

.auth-field__icon svg,
.auth-field__eye svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.auth-field__eye {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.auth-field__eye:hover {
  background: rgba(33, 150, 243, 0.1);
}

.auth-field__eye .eye--on,
.auth-field__eye.is-shown .eye--off {
  display: none;
}

.auth-field__eye.is-shown .eye--on {
  display: block;
}

.auth .field__error {
  margin-left: 24px;
}

/* Password checklist */
.checklist {
  margin: -6px 0 22px;
  padding: 0 0 0 38px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
  color: #9e9e9e;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s;
}

.checklist__icon {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9e9e9e;
  transition: background-color 0.3s, transform 0.3s;
}

.checklist__icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 0.3s;
}

.checklist li.is-met {
  color: #2e7d32;
}

.checklist li.is-met .checklist__icon {
  background: #2e7d32;
  transform: rotateY(360deg);
}

.checklist li.is-met .checklist__icon::after {
  opacity: 1;
}

.form-error {
  margin: 0 0 16px;
  color: #d32f2f;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.form-error:empty {
  display: none;
}

.auth__links {
  margin: -6px 0 18px;
  text-align: right;
  font-size: 16px;
}

.auth__submit {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 28px;
  background: var(--brand);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: #fff;
  font: 500 20px/1.2 var(--font);
  cursor: pointer;
}

.auth__submit:hover {
  background: #1e88e5;
}

.auth--narrow .auth__submit {
  min-height: 44px;
  border-radius: 6px;
  font-size: 16px;
}

.auth__switch {
  margin: 24px 0 0;
  text-align: center;
  font-size: 17px;
}

@media (max-width: 600px) {
  .auth {
    padding: 36px 16px 32px;
  }

  .auth__title {
    font-size: 32px;
  }

  .auth__sub {
    font-size: 18px;
  }

  .auth__form {
    margin-top: 32px;
  }

  .auth .field__control {
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 16px;
  }

  .auth .field__control:focus {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .auth .field__label {
    top: 17px;
    font-size: 16px;
  }

  .auth .field__control:focus + .field__label,
  .auth .field__control:not(:placeholder-shown) + .field__label {
    top: -9px;
    font-size: 13px;
  }

  .auth-field__icon {
    top: 14px;
  }

  .auth-field__eye {
    top: 4px;
  }

  .checklist {
    padding-left: 12px;
  }

  .checklist li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checklist li,
  .checklist__icon,
  .checklist__icon::after {
    transition: none;
  }

  .checklist li.is-met .checklist__icon {
    transform: none;
  }
}
