body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.container-fluid {
  height: 100vh;
  padding: 0;
}

.row.full-height {
  height: 100vh;
  margin: 0;
}

/* Left Panel - Image Slider */
.left-panel {
  position: relative;
  color: #fff;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

.slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.left-panel-content {
  position: absolute;
  bottom: 80px;
  left: 40px;
  right: 40px;
  z-index: 3;
  max-width: 500px;
  text-align: left;
}

.slide-content {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.slide-content.active {
  opacity: 1;
  position: relative;
}

.left-panel-content h2 {
  font-weight: 700;
  font-size: 2.0rem;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.left-panel-content p {
  font-size: 1.0rem;
  line-height: 1.5;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 40px;
  display: flex;
  gap: 8px;
  z-index: 3;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
}

.dot.active {
  background: #002CCD;
  width: 20px;
  height: 8px;
  border-radius: 4px;
  transform: none;
}

/* Right Panel - Login Form */
.right-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #FFFFFF;
  min-height: 100vh;
}

.login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.login-box {
  width: 100%;
  max-width: 526px;
  background: #FFFFFF;
  border: 1px solid #45454533;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(48px);
}

.logo-container {
  text-align: center;
  margin-bottom: 24px;
}

.logo-container img {
  height: auto;
  margin-bottom: 8px;
  width: 218px;
}

.logo-successive {
  height: 40px;
  margin-bottom: 1rem;
}

.login-title {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 124%;
  letter-spacing: 0px;
  text-align: center;
  color: #2d3748;
  margin-bottom: 32px;
}

.login-subtitle {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.form-label {
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Floating Label Styles */
.floating-label-group {
  position: relative;
  margin-bottom: 24px;
}

.floating-label-group input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 16px 8px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #f7fafc;
  width: 100%;
  outline: none;
}

.floating-label-group input:focus {
  border-color: #002CCD;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
  background-color: #fff;
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #a0aec0;
  transition: all 0.3s ease;
  pointer-events: none;
  background-color: transparent;
  padding: 0 4px;
}

.floating-label-group input:focus + .floating-label,
.floating-label-group input:not(:placeholder-shown) + .floating-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #002CCD;
  background-color: #fff;
}

.floating-label-group input:not(:focus):not(:placeholder-shown) + .floating-label {
  color: #4a5568;
}

/* Ensure floating label is positioned correctly when input has value (including old values) */
.floating-label-group input[value]:not([value=""]) + .floating-label,
.floating-label-group input.is-invalid + .floating-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  background-color: #fff;
}

.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #f7fafc;
}

.form-control:focus {
  border-color: #002CCD;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
  background-color: #fff;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #a0aec0;
  z-index: 10;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.password-toggle:hover {
  color: #002CCD;
}

/* Ensure consistent positioning for all floating label groups */
.floating-label-group .password-toggle,
.floating-label-group.position-relative .password-toggle {
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
}

/* Ensure the eye button stays aligned even when there are error messages */
.floating-label-group.has-error .password-toggle,
.floating-label-group:has(.invalid-feedback) .password-toggle {
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
}

/* Additional fallback for browsers that don't support :has() */
.floating-label-group .password-toggle {
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 15px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  border: 1px solid #000000;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 11px;
  left: 1.5px;
  bottom: 1.5px;
  background-color: #000000;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.toggle-slider:hover {
  background-color: #f8f9fa;
  border-color: #333333;
}

input:checked + .toggle-slider {
  background-color: #ffffff;
  border-color: #002CCD;
}

input:checked + .toggle-slider:before {
  background-color: #002CCD;
  transform: translateX(13px);
}

input:checked + .toggle-slider:hover {
  background-color: #f8f9fa;
  border-color: #4c51bf;
}

input:checked + .toggle-slider:hover:before {
  background-color: #4c51bf;
}

.remember-me-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 8px 0;
}

.remember-me-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check-label {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 0;
  line-height: 1.4;
  user-select: none;
  cursor: pointer;
}

.forgot-password {
  color: #002CCD;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.forgot-password:hover {
  color: #002CCD;
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  background: var(--primary-main, #002CCD);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.46px;
  transition: all 0.3s ease;
  box-shadow: none;
  width: 100%;
  cursor: pointer;
}

.btn-login:hover {
  background: #001f99;
  color: white;
  transform: none;
  box-shadow: none;
}

.btn-login:active,
.btn-login:focus {
  background: #001f99!important;
  color: white!important;
  outline: none;
  box-shadow: none;
}

.btn-login:disabled {
  background: #cbd5e0;
  color: #a0aec0;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-login:disabled:hover {
  background: #cbd5e0;
  transform: none;
}

/* Google Button */
.btn-google {
  background: #ffffff;
  color: #5f6368;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.46px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.btn-google:hover {
  background: #f8f9fa;
  color: #5f6368;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-google:active,
.btn-google:focus {
  background: #f1f3f4;
  color: #5f6368;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-google i {
  font-size: 18px;
}

.footer-text {
  font-size: 11px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin: 0;
  padding: 20px 0;
}

.right-panel-footer {
  width: 100%;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    padding: 20px;
    min-height: 100vh;
  }

  .login-box {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .login-title {
    font-size: 1.3rem;
  }

  .left-panel-content h2 {
    font-size: 1.8rem;
  }
}

/* Validation Styles for Floating Labels */
.floating-label-group input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.floating-label-group input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.floating-label-group input.is-invalid + .floating-label {
  color: #dc3545 !important;
  top: 0 !important;
  transform: translateY(-50%) !important;
  font-size: 0.75rem !important;
  background-color: #fff !important;
}

.floating-label-group .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 0.75rem;
  color: #dc3545;
  line-height: 1.4;
}

/* Ensure proper spacing when error message is present */
.floating-label-group:has(.invalid-feedback) {
  margin-bottom: 30px;
}

input.is-invalid ~ .password-toggle {
    top: 40% !important;
}

/* Shake animation for form validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Ensure client-side error messages have proper styling */
.floating-label-group .client-error {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 0.75rem;
  color: #dc3545;
  line-height: 1.4;
}

/* Password Requirements Styling */
.password-strength-container {
  margin-bottom: 1rem;
}

.password-requirements {
  font-size: 0.875rem;
}

.requirement-item {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.requirement-item i {
  width: 16px;
  margin-right: 8px;
  font-size: 14px;
}

.requirement-item.valid {
  color: #28a745 !important;
}

.password-strength-bar {
  transition: all 0.3s ease;
}

/* Progress bar styling for password strength */
.progress {
  height: 5px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
