.authentication-wrapper {
  display: flex;
  flex-basis: 100%;
  min-height: 100vh;
  width: 100%;
}

.authentication-wrapper .authentication-inner {
  width: 100%;
}

.authentication-wrapper.authentication-basic {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.authentication-wrapper.authentication-cover {
  align-items: flex-start;
}

.authentication-wrapper.authentication-cover .authentication-inner {
  height: 100vh;
}

.authentication-wrapper.authentication-basic .authentication-inner {
  max-width: 25rem;
  position: relative;
}

.authentication-wrapper.authentication-basic .authentication-inner:before {
  width: 21rem;
  height: 21rem;
  content: " ";
  position: fixed;
  top: -100px;
  background: url("../../../img/pages/auth-top-left.png");
  background-size: contain;
}

html:not([dir=rtl]) .authentication-wrapper.authentication-basic .authentication-inner:before {
  left: -100px;
}

[dir=rtl] .authentication-wrapper.authentication-basic .authentication-inner:before {
  right: -100px;
  transform: rotate(90deg);
}

.authentication-wrapper.authentication-basic .authentication-inner:after {
  width: 7rem;
  height: 14.125rem;
  content: " ";
  position: fixed;
  bottom: 0;
  background-image: url("../../../img/pages/auth-right-bottom.png");
  background-size: contain;
}

html:not([dir=rtl]) .authentication-wrapper.authentication-basic .authentication-inner:after {
  right: 0;
}

[dir=rtl] .authentication-wrapper.authentication-basic .authentication-inner:after {
  left: 0;
  transform: rotate(180deg);
}

.authentication-wrapper.authentication-basic .authentication-inner .card {
  z-index: 1;
}

.authentication-wrapper.authentication-basic .authentication-inner .card .app-brand {
  margin-bottom: 2.5rem;
}

.authentication-wrapper .auth-input-wrapper .auth-input {
  max-width: 50px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  font-size: 150%;
}

.authentication-cover-img {
  margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
  .authentication-wrapper .auth-input-wrapper .auth-input {
    font-size: 1.125rem;
  }
}

#twoStepsForm .fv-plugins-bootstrap5-row-invalid .form-control {
  border-color: #ff5b5c;
}

.light-style .authentication-wrapper .authentication-bg {
  background-color: #fff;
}

.dark-style .authentication-wrapper .authentication-bg {
  background-color: #283144;
}

@media (min-height: 737px) {
  .authentication-cover-img {
    margin-bottom: 3rem;
  }
}

/* ============================================
   RESPONSIVE FIXES FOR SMALL SCREENS
   ============================================ */

/* Small Resolution Monitors (1366x768 and below) */
@media (max-width: 1366px) and (max-height: 768px) {
  .authentication-wrapper.authentication-basic {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner {
    max-width: 24rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card {
    max-height: 650px;
    overflow-y: auto;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .card-body {
    padding: 1.25rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .app-brand {
    margin-bottom: 1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .mb-3 {
    margin-bottom: 0.75rem !important;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .divider {
    margin: 1rem 0;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .btn-icon {
    padding: 0.4rem;
    font-size: 1rem;
  }
}

/* Extra Small Devices (Mobile Phones) */
@media (max-width: 575.98px) {
  .authentication-wrapper.authentication-basic .authentication-inner {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card {
    max-height: none;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .card-body {
    padding: 1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card h4 {
    font-size: 1.1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card p {
    font-size: 0.75rem;
  }
}

/* Very Small Height Screens (Landscape Mobile) */
@media (max-height: 600px) {
  .authentication-wrapper.authentication-basic {
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card {
    max-height: 550px;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .card-body {
    padding: 1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .app-brand {
    margin-bottom: 0.75rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card p {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner .card .mb-3 {
    margin-bottom: 0.6rem !important;
  }
}

/* High-DPI Displays (Windows Display Scaling) */
@media (-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
  .authentication-wrapper.authentication-basic .authentication-inner .card {
    max-height: 700px;
  }
}