.authentication-shell {
  min-height: calc(var(--viewport-height) - (2 * var(--space-6)));
}

.authentication-panel {
  position: relative;
  padding: clamp(var(--space-5), 5vw, var(--space-8));
}

.authentication-lead {
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}

.authentication-form {
  width: 100%;
}

.authentication-form .form-field {
  width: 100%;
  text-align: left;
}

.authentication-form .form-field > span:first-child {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.authentication-error {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.authentication-submit {
  min-height: var(--control-height-lg);
}

.authentication-code-field input {
  min-height: var(--control-height-lg);
  font-size: calc(var(--font-size-base) * 22 / 12);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  text-align: center;
}

.authentication-resend {
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--color-border);
  margin-top: var(--space-5);
}

.authentication-resend form {
  display: block;
}

.authentication-resend .btn {
  width: 100%;
  min-height: var(--control-height-lg);
}

.authentication-countdown,
.authentication-send-count {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  line-height: 1.4;
}

.authentication-send-count {
  margin-top: var(--space-3);
}

.authentication-back-link {
  display: inline-block;
  margin-top: var(--space-5);
  color: var(--color-info);
  font-size: var(--font-size-md);
}

.authentication-noscript-resend {
  margin-top: var(--space-2);
}

.authentication-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: calc(var(--space-unit) * -1 / 4);
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .authentication-shell {
    min-height: calc(var(--viewport-height) - (2 * var(--space-4)));
    padding: var(--space-4);
  }

  .authentication-panel {
    width: 100%;
  }
}
