/* Login Page Styles */
body, html {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-wrapper {
  height: 100vh;
  background: #ffffff;
}

.login-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.login-box {
  max-width: 900px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

/* Form Styling */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Button Styling */
.btn-dark {
  background: #000;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #d1d5db;
  color: #374151;
}

/* Forgot Password Link */
.forgot-password-link {
  font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Divider */
.divider {
  position: relative;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.divider span {
  background: white;
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Error Messages */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.is-invalid~.error-message {
  display: block;
}

.is-invalid {
  border-color: #dc3545;
  background-image: none !important;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 2.5rem;
  cursor: pointer;
  color: #6c757d;
  z-index: 10;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #000;
}

.password-wrapper .form-control {
  padding-right: 50px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 1rem;
  }
  
  .login-box {
    max-width: 100%;
    margin: 0;
    border-radius: 15px;
  }
  
  .col-md-6.p-5 {
    padding: 2rem !important;
  }
  
  /* Mobile specific styling for forgot password */
  .text-end {
    text-align: right !important;
  }
  
  /* Forgot Password - Smaller text and blue color for mobile */
  .forgot-password-link {
    font-size: 0.8rem !important;
    color: #3b82f6 !important;
    font-weight: 500;
  }
  
  .forgot-password-link:hover {
    color: #2563eb !important;
  }
  
  /* Ensure the forgot password link uses the mobile styles */
  a[href="/forgot-password"] {
    font-size: 0.8rem !important;
    color: #3b82f6 !important;
    font-weight: 500;
  }
  
  a[href="/forgot-password"]:hover {
    color: #2563eb !important;
  }
  
  /* Form controls mobile adjustments */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem 1rem;
  }
  
  .password-wrapper .form-control {
    padding-right: 50px;
  }
  
  .password-toggle {
    top: 2.75rem;
    right: 12px;
    font-size: 0.9rem;
  }
  
  /* Button adjustments for mobile */
  .btn-dark, .btn-outline-secondary {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  /* Header adjustments for mobile */
  h2 {
    font-size: 1.75rem !important;
  }
  
  .text-muted {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .col-md-6.p-5 {
    padding: 1.5rem !important;
  }
  
  /* Even smaller text for very small screens */
  .forgot-password-link,
  a[href="/forgot-password"] {
    font-size: 0.75rem !important;
  }
  
    
  h2 {
    font-size: 1.5rem !important;
  }
}

/* Custom styling for blocked user modal */
.blocked-user-modal {
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.blocked-user-modal .swal2-title {
  color: #dc3545 !important;
  font-weight: 700 !important;
}

.blocked-user-modal .swal2-content {
  font-size: 16px !important;
  color: #374151 !important;
}

/* Toast styling */
.small-toast {
  font-size: 0.875rem !important;
}