/* Login & Password Recovery Redesign
============================================================================= */
.login-page-wrapper {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}
.login-page-wrapper::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-primary, #2e66f9);
  filter: blur(150px);
  top: -50px;
  left: -50px;
  opacity: 0.2;
  z-index: 0;
}
.login-page-wrapper::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: #ef6b4a;
  filter: blur(180px);
  bottom: -100px;
  right: -100px;
  opacity: 0.15;
  z-index: 0;
}

.login-side-form {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
}
@media (min-width: 992px) {
  .login-side-form {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

.login-side-image {
  flex: 0 0 55%;
  max-width: 55%;
  display: none;
  position: relative;
  overflow: hidden;
}
@media (min-width: 992px) {
  .login-side-image {
    display: block;
  }
}
.login-side-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 10s ease;
}
.login-side-image:hover img {
  transform: scale(1.1);
}
.login-side-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.15);
}

.form-floating {
  margin-bottom: 1.5rem;
}
.form-floating .form-control {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  padding-left: 1rem;
  height: calc(3.5rem + 2px);
  transition: all 0.3s ease;
}
.form-floating .form-control:focus {
  background: #fff;
  border-color: var(--color-primary, #2e66f9);
  box-shadow: 0 0 0 0.25rem rgba(46, 102, 249, 0.1);
}
.form-floating label {
  padding-left: 1rem;
  color: #6c757d;
}

.btn-login {
  background: linear-gradient(135deg, #2e66f9 0%, #1a4cd2 100%);
  border: none;
  border-radius: 1rem;
  padding: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  color: white;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(46, 102, 249, 0.4);
  background: linear-gradient(135deg, #3b71ff 0%, #2e66f9 100%);
}
.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}
.login-footer a {
  color: var(--color-primary, #2e66f9);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.login-footer a:hover {
  color: #1a4cd2;
  text-decoration: underline;
}

.brand-logo {
  margin-bottom: 2.5rem;
  text-align: center;
}
.brand-logo img {
  height: 50px;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Dark Mode Support
============================================================================= */
[data-bs-theme=dark] .login-page-wrapper, body.dark-theme .login-page-wrapper {
  background: radial-gradient(circle at top right, #1a1a2e, #16213e);
}
[data-bs-theme=dark] .login-page-wrapper::before, body.dark-theme .login-page-wrapper::before {
  opacity: 0.1;
}
[data-bs-theme=dark] .login-page-wrapper::after, body.dark-theme .login-page-wrapper::after {
  opacity: 0.1;
}
[data-bs-theme=dark] .glass-card, body.dark-theme .glass-card {
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
[data-bs-theme=dark] .glass-card h3, body.dark-theme .glass-card h3 {
  color: #fff;
}
[data-bs-theme=dark] .glass-card p, body.dark-theme .glass-card p {
  color: rgba(255, 255, 255, 0.7);
}
[data-bs-theme=dark] .form-floating .form-control, body.dark-theme .form-floating .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
[data-bs-theme=dark] .form-floating .form-control:focus, body.dark-theme .form-floating .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary, #6c8ffd);
}
[data-bs-theme=dark] .form-floating .form-control::-moz-placeholder, body.dark-theme .form-floating .form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.3);
}
[data-bs-theme=dark] .form-floating .form-control:-ms-input-placeholder, body.dark-theme .form-floating .form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.3);
}
[data-bs-theme=dark] .form-floating .form-control::placeholder, body.dark-theme .form-floating .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
[data-bs-theme=dark] .form-floating label, body.dark-theme .form-floating label {
  color: rgba(255, 255, 255, 0.5);
}
[data-bs-theme=dark] .login-footer, body.dark-theme .login-footer {
  color: rgba(255, 255, 255, 0.5);
}

/* Animations
============================================================================= */
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.glass-card {
  -webkit-animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
          animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo {
  -webkit-animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
          animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.form-floating:nth-child(1) {
  -webkit-animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
          animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.form-floating:nth-child(2) {
  -webkit-animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
          animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-login {
  -webkit-animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
          animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.login-footer {
  -webkit-animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
          animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
