:root {
  --bs-body-bg: #fbf4f3;
  --bs-primary: #29149d;
}

body {
  background: #fefbfa;
}

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.small-logo img {
  width: 50px;
}

.menu-item.active > .menu-link:not(.menu-toggle) {
  background: #29149d;
}

.app-brand-text.demo {
  font-size: 1.25rem;
}

.authentication-wrapper .app-brand-text.demo {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.authentication-wrapper .nav-pills ~ .tab-content {
  padding: 0;
  box-shadow: 0 0 0;
}

.authentication-wrapper .tab-content {
  padding: 1.25rem 0;
  position: relative;
  z-index: 3;
}

.authentication-wrapper .tab-content:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0.375rem 1rem 0 rgba(46, 38, 61, 0.22);
  transform: scale(0.9) translateY(-8px);
  z-index: 0;
}

.authentication-wrapper .tab-content:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0.375rem 1rem 0 rgba(46, 38, 61, 0.22);
  transform: scale(0.7) translateY(-70px);
  z-index: -1;
}

.authentication-wrapper .tab-pane {
  transition: all 300ms;
  transform: scale(1) translateX(10px);
}

.authentication-wrapper .fade.active {
  transform: scale(1) translateX(-10px);
}

.authentication-wrapper .fade.show {
  transform: scale(0.5) translateX(0px);
}

.authentication-wrapper .tab-pane svg {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 20%;
  height: 35%;
  color: #29149d;
  opacity: 0.1;
  transform: rotate(5deg);
}

.authentication-wrapper .card {
  border-radius: 15px;
}

.login-card {
  aspect-ratio: 1.6;
  padding: 25% 30px 20px 30px !important;
  background: url(../img/elements/login-method-2.jpg) center center/ cover
    no-repeat;
}

.login-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: end;
  position: absolute;
  bottom: 10%;
  left: 30px;
  right: 30px;
}

.registration-card {
  max-width: 760px;
  margin: 0 auto;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 300px;
    position: relative;
  }

  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1.25rem;
}

.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}

.login-container {
  width: 100%;
  max-width: 520px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  transition: transform 0.5s cubic-bezier(0.68, -0.35, 0.55, 1.12);
}

.form-container {
  width: 100%;
}

.form-title {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.form-icon {
  text-align: center;
  font-size: 60px;
  margin-bottom: 20px;
  color: #29149d;
  position: absolute;
  top: 10px;
  right: 20px;
  opacity: 0.1;
  transform: rotate(5deg);
}

.identifier-display {
  font-weight: 600;
  color: #29149d;
  word-break: break-all;
  text-align: center;
  margin-bottom: 20px;
  position: absolute;
  top: 23%;
  left: 9%;
  font-size: 12px;
  font-weight: 200;
}

.password-toggle {
  cursor: pointer;
  z-index: 2;
}

.step-2 {
  display: none;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.form-login .invalid-feedback {
  position: absolute;
  display: none;
}

.otp-input {
  width: 50px;
  height: 48px;
  text-align: center;
  border: 1px solid
    color-mix(in sRGB, var(--bs-base-color) 24%, var(--bs-paper-bg));
  border-radius: 8px;
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: scale(1.05);
}

.otp-input.filled {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

/* Enhanced OTP error state */
.otp-input.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.step-content {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stepular .step {
  opacity: 0.3;
  transition: all 0.3s ease;
}

.stepular .step.active {
  opacity: 1;
}

.stepular .step.completed .avatar-initial {
  background-color: #28a745 !important;
}

.otp-info {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.timer {
  font-weight: 600;
  color: #28a745;
}

.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e9ecef;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  width: 0%;
}

.strength-weak {
  background: #dc3545;
}

.strength-medium {
  background: #ffc107;
}

.strength-strong {
  background: #28a745;
}

.requirements-list {
  font-size: 0.8rem;
  color: #6c757d;
}

.requirement {
  margin: 0.25rem 0;
  transition: all 0.3s ease;
}

.requirement.met {
  color: #28a745;
}

.requirement.met::before {
  content: "✓ ";
  font-weight: bold;
}

.requirement:not(.met)::before {
  content: "✗ ";
  color: #dc3545;
  font-weight: bold;
}

.form-control:disabled {
  background: #fff;
}

/* Enhanced validation feedback styles */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  animation: shake 0.5s ease-in-out;
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
  /* animation: fadeIn 0.3s ease-in; */
}

.valid-feedback {
  display: block;
  color: #29149d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in;
}

/* Field success indicators */
.field-success-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  font-size: 18px;
  z-index: 5;
}

.field-error-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #dc3545;
  font-size: 18px;
  z-index: 5;
}

/* Enhanced form floating styles */
.form-floating-outline {
  position: relative;
}

.form-floating-outline .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Progress indicator for password strength */
.password-strength-text {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.password-strength-text.weak {
  color: #dc3545;
}

.password-strength-text.medium {
  color: #ffc107;
}

.password-strength-text.strong {
  color: #28a745;
}

/* Loading button state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* OTP container enhancements */
.otp-container {
  position: relative;
}

/* Captcha error enhancement */
.captcha-error-enhanced {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease-in;
  display: flex;
  align-items: center;
}

.captcha-error-enhanced::before {
  content: "⚠️";
  margin-right: 8px;
  font-size: 16px;
}

/* Success message styles */
.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.825rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in;
}

.info-message {
  color: #17a2b8;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.825rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in;
}

.warning-message {
  color: #ffc107;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.825rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in;
}

.otp-error-message {
  position: relative;

  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  margin-bottom: 0.825rem;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in;
  white-space: nowrap;
}
