.chapire-authentication-page {
  background: #fff;
}

.chapire-authentication-page .site-header {
  border-bottom: 1px solid #efefef;
}

.authentication-shell,
.authentication-page {
  min-height: calc(100vh - 96px);
  background: #fff;
  color: #000;
}

.authentication-layout,
.authentication-page__layout {
  display: grid;
  min-height: calc(100vh - 96px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
  direction: ltr;
}

.authentication-visual,
.authentication-page__visual {
  grid-column: 1;
  min-height: inherit;
  background: #f4f4f2;
}

.authentication-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.authentication-panel,
.authentication-page__panel {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 72px clamp(32px, 5vw, 86px);
  direction: rtl;
}

.authentication-card {
  width: min(100%, 392px);
}

.authentication-card-head,
.authentication-card__head {
  margin-bottom: 44px;
}

.authentication-logo,
.authentication-card__logo {
  display: inline-block;
  margin-bottom: 78px;
  color: #000;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.authentication-title,
.authentication-card__title {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
}

.authentication-description,
.authentication-card__description {
  max-width: 340px;
  margin-top: 8px;
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
}

.authentication-status {
  display: none;
  margin-bottom: 28px;
  padding: 12px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  color: #000;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
}

.authentication-status.is-visible {
  display: block;
}

.authentication-status.is-success {
  color: var(--clr-success);
}

.authentication-status.is-error {
  color: var(--clr-danger);
}

.authentication-form {
  display: grid;
  gap: 24px;
}

.authentication-form--hidden {
  display: none;
}

.authentication-field,
.authentication-form__field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.authentication-field span,
.authentication-form__field span,
.authentication-form__field .field__label {
  color: #5f5f5f;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}

.authentication-form__help,
.authentication-form__help {
  margin: -8px 0 0;
  color: #5f5f5f;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.9;
}

.authentication-form__help strong {
  color: #000;
  font-weight: 400;
}

.field__control {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.2s ease;
}

.field__control:focus {
  border-bottom-color: #000;
}

.field__control::placeholder {
  color: #9a9a9a;
}

.field__control--code {
  text-align: center;
  letter-spacing: 5px;
}

.authentication-actions,
.authentication-actions--stack,
.authentication-card__actions {
  display: grid;
  gap: 10px;
}

.authentication-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.authentication-actions--stack,
.authentication-card__actions--stack {
  grid-template-columns: 1fr;
}

.authentication-page .btn {
  display: inline-flex;
  min-height: 48px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.authentication-page .btn:hover,
.authentication-page .btn--primary {
  background: #000;
  color: #fff;
}

.authentication-page .btn--primary:hover {
  background: transparent;
  color: #000;
}

.authentication-page .btn--secondary {
  border-color: #d8d8d8;
}

.authentication-page .btn:disabled {
  border-color: #e2e2e2;
  color: #9a9a9a;
  cursor: not-allowed;
}

.authentication-resend {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.authentication-resend:disabled {
  color: #9a9a9a;
  cursor: not-allowed;
  text-decoration-color: transparent;
}

/* Media Queries */
@media (max-width: 1024px) {
  .authentication-shell,
      .authentication-layout {
        min-height: auto;
      }

      .authentication-layout {
        grid-template-columns: 1fr;
      }

      .authentication-visual {
        grid-column: 1;
        grid-row: 2;
        min-height: 42vh;
      }

      .authentication-visual img {
        min-height: 42vh;
      }

      .authentication-panel {
        grid-column: 1;
        grid-row: 1;
        min-height: auto;
        padding: 42px 24px 68px;
      }

      .authentication-card {
        width: 100%;
      }

      .authentication-card-head {
        margin-bottom: 34px;
      }

      .authentication-logo {
        margin-bottom: 42px;
        font-size: 30px;
      }
}

@media (max-width: 768px) {
  .authentication-visual {
        min-height: 34vh;
      }

      .authentication-visual img {
        min-height: 34vh;
      }

      .authentication-panel {
        padding: 34px 18px 58px;
      }

      .authentication-actions {
        grid-template-columns: 1fr;
      }
}
