.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    url(../img/bg/clouds.svg) center / max(1984px, 100%, 183.7vh) auto no-repeat,
    var(--zl-page-gradient);
  font-family: var(--zl-font);
  color: var(--zl-input-text);
}
.auth-view { display: flex; justify-content: center; width: 100%; }

.auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 440px;
  max-width: 100%;
  min-height: 528px;
  padding: 52px 78px 20px;
  border-radius: var(--zl-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 100%);
  box-shadow: var(--zl-shadow-card);
}
.auth-card--wide { padding-left: 40px; padding-right: 40px; }

.auth-back {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.auth-back img {
  display: block;
  width: 18.86px;
  height: 17.67px;
  transform: rotate(180deg);
}
.auth-back[disabled] { cursor: default; opacity: .5; }

.auth-logo {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 50px;
  margin-bottom: 49px;
  overflow: hidden;
}
.auth-logo img {
  position: absolute;
  top: -9.47%;
  left: -9.52%;
  width: 119.05%;
  height: 119.22%;
  max-width: none;
}

/* Pulls the title up into the gap under the logo. */
.auth-heading { width: 100%; margin: -25px 0 24px; text-align: center; }
.auth-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--zl-black);
}
.auth-text {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--zl-grey-dark);
  text-align: center;
}

.auth-step {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.auth-form { width: 100%; margin: 0; }

.auth-fields { position: relative; width: 100%; }
.auth-field + .auth-field { margin-top: 22px; }

.auth-field {
  position: relative;
  width: 100%;
  height: 46px;
}
.auth-field label {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: var(--zl-grey-dark);
  pointer-events: none;
}
.auth-field input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 24px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--zl-grey-light);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--zl-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  color: var(--zl-input-text);
  outline: none;
  transition: border-color .15s ease;
}
.auth-field input:focus { border-bottom-color: var(--zl-green-line); }
.auth-field--password input { padding-right: 24px; }
.auth-field--status input { padding-right: 48px; }
/* Hides Chrome's autofill background so the translucent card shows through. */
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--zl-input-text);
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-color 600000s 0s;
}

.auth-field.bad-p input { border-bottom-color: var(--zl-red); }
.auth-field.good-p input { border-bottom-color: var(--zl-green-line); }

.auth-field-eye {
  position: absolute;
  top: 24px;
  right: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent url(../img/icons/eye-closed.svg) center / 14px 11px no-repeat;
  cursor: pointer;
}
.auth-field-eye.on { background-image: url(../img/psw-view-on.svg); background-size: 14px 9px; }

.auth-field-status {
  position: absolute;
  top: 24px;
  right: 24px;
  display: none;
  width: 16px;
  height: 16px;
  background: center / 16px no-repeat;
}
.auth-field.good-p .auth-field-status { display: block; background-image: url(../img/icons/psw-good.png); }
.auth-field.bad-p .auth-field-status { display: block; background-image: url(../img/icons/psw-bad.png); }
.auth-field-tooltip {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  display: none;
  padding: 8px 12px;
  border-radius: var(--zl-radius-xs);
  background: var(--zl-white);
  filter: var(--zl-shadow-tooltip);
  font-size: 12px;
  line-height: 14px;
  color: var(--zl-input-text);
  white-space: nowrap;
  transform: translateX(-50%);
}
.auth-field.bad-p .auth-field-status:hover .auth-field-tooltip { display: block; }

.auth-error {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  font-size: 12px;
  line-height: 15px;
  color: var(--zl-red);
}
.auth-error::first-letter { text-transform: uppercase; }
.auth-error--static { position: static; margin-top: 12px; text-align: center; }

.auth-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--zl-radius-pill);
  font-family: var(--zl-font);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.auth-btn:focus { outline: none; }
.auth-btn:focus-visible { outline: 2px solid var(--zl-green); outline-offset: 2px; }
.auth-form .auth-btn { margin-top: 42px; }

.auth-btn--primary {
  background: var(--zl-green);
  box-shadow: var(--zl-shadow-reg);
  color: var(--zl-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}
.auth-btn--primary:hover { background: var(--zl-green-hover); }
.auth-btn--primary:active { background: var(--zl-green-dark); }
.auth-btn--primary[disabled],
.auth-btn--primary.is-disabled {
  background: var(--zl-disabled);
  box-shadow: none;
  text-shadow: none;
  cursor: default;
  pointer-events: none;
}

.auth-btn--outline {
  border: 1px solid var(--zl-grey-light);
  background: transparent;
  color: var(--zl-text-strong);
}
.auth-btn--outline:hover { border-color: var(--zl-grey-medium); background: var(--zl-grey-lighter); }
.auth-btn--outline:active { border-color: var(--zl-grey-medium); background: var(--zl-grey-light); }
.auth-btn--outline[disabled] {
  border-color: transparent;
  background: var(--zl-disabled);
  color: var(--zl-white);
  cursor: default;
  pointer-events: none;
}

.auth-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 16px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-family: var(--zl-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--zl-grey-dark);
  text-decoration: underline;
  cursor: pointer;
}
.auth-link:hover,
.auth-link:active { color: var(--zl-black); }
.auth-link[disabled] { color: var(--zl-grey-medium); cursor: default; pointer-events: none; }

/* ngAnimate waits for the spinner animation before hiding; hide label/spinner instantly. */
.auth-btn > .ng-hide { display: none !important; }

.auth-spinner {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--zl-white);
  border-radius: 50%;
  animation: auth-spin .8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 22px;
  margin: 18px 0;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: .38px;
  color: var(--zl-grey-dark);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  width: 128px;
  height: 1px;
  background: var(--zl-grey-medium);
}

.auth-terms {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 12px;
  line-height: 15px;
  color: var(--zl-text-strong);
  text-align: center;
}
.auth-terms a { color: inherit; text-decoration: underline; }
.auth-terms a:hover { color: var(--zl-black); }

.auth-hints-toggle {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--zl-font);
  font-size: 12px;
  color: var(--zl-grey-dark);
  text-decoration: underline;
  cursor: pointer;
}
.auth-hints {
  width: 100%;
  max-height: 0;
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  color: var(--zl-grey-dark);
  transition: max-height .3s ease-in-out;
}
.auth-hints.show { max-height: 300px; }
.auth-hints li + li { margin-top: 4px; }

.auth-otc { width: 100%; }
.auth-otc-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
}
/* Digit groups: 3+3 (6 digits), 3+1+3 (.one, 7), 4+4 (.two, 8). */
.auth-otc-digits > div:nth-of-type(3) { margin-right: 16px; }
.auth-otc-digits.one > div:nth-of-type(3),
.auth-otc-digits.two > div:nth-of-type(3) { margin-right: 0; }
.auth-otc-digits.one > div:nth-of-type(4) { margin: 0 16px; }
.auth-otc-digits.two > div:nth-of-type(4) { margin-right: 16px; }

.auth-otc input.digits-containers,
.auth-otc-backup input {
  display: block;
  height: 48px;
  margin: 0;
  border: 1px solid var(--zl-grey-medium);
  border-radius: var(--zl-radius-sm);
  background: var(--zl-white);
  font-family: var(--zl-font);
  color: var(--zl-input-text);
  outline: none;
  transition: border-color .15s ease;
}
.auth-otc input.digits-containers {
  width: 36px;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}
.auth-otc-backup input { width: 100%; padding: 0 12px; font-size: 16px; }
.auth-otc input.digits-containers:focus,
.auth-otc-backup input:focus { border-color: var(--zl-green-line); }

.auth-otc-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 15px;
  color: var(--zl-red);
}
.auth-otc-error img { width: 12px; height: 12px; }

.auth-otc-trust { display: flex; justify-content: center; margin-top: 16px; }
.auth-otc-trust md-checkbox { margin: 0; font-size: 12px; color: var(--zl-text-strong); }
.auth-otc-trust md-checkbox.md-checked .md-icon { background-color: var(--zl-green-line); }

.auth-otc .auth-btn { width: 284px; max-width: 100%; margin: 24px auto 0; }
.auth-otc-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 16px;
}
.auth-otc-links .auth-link { margin-top: 0; }
.auth-otc-resend { display: flex; align-items: center; }
.auth-otc-timer { font-size: 12px; color: var(--zl-grey-dark); }

.auth-card .spinner-border {
  position: absolute;
  top: 30%;
  left: 50%;
  display: none;
  width: 2rem;
  height: 2rem;
  margin-left: -1rem;
  border: .25em solid var(--zl-green-line);
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin .75s linear infinite;
}
.auth-card .spinner-border.show { display: block; }

.auth-step > .auth-text + .auth-btn { margin-top: 32px; }
.auth-success {
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--zl-text-strong);
  text-align: center;
}
.auth-success-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  background: url(../img/success-reset.svg) no-repeat;
}

@media (max-width: 480px) {
  .auth-card,
  .auth-card--wide { padding-left: 24px; padding-right: 24px; }
  .auth-divider::before,
  .auth-divider::after { width: calc(50% - 20px); }
  .auth-otc input.digits-containers { width: 30px; }
}

md-dialog.required-otc {
  width: 474px;
  height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 13px;
  text-align: center;
}
#dialogContent_6 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  background: rgba(231, 76, 60, 1);
  font-size: 14px;
  color: white;
  text-align: center;
}
#dialogContent_6 h2 { margin-bottom: 0; font-size: 14px; }
md-dialog-actions.relogin-dial { height: 68px !important; }
.relogin-dial button.md-button.md-primary,
.relogin-dial button.md-accent { font-size: 12px; color: rgba(22, 168, 73, 1); }

md-toast.zultys-toast .md-toast-content {
  background-color: white;
  color: rgb(37 165 91);
}
