.modal-content:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
[role='menuitem']:focus {
  background-color: #eff6ff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Company Logo Styles */
.company-logo {
  transition:
    transform 0.3s ease-in-out,
    filter 0.3s ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.company-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Desktop Two-Column Layout Styling */
.desktop-layout {
  width: 100%;
  max-width: 72rem; /* max-w-6xl */
}

.desktop-layout .grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Force two equal columns */
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
}

.desktop-welcome {
  text-align: left;
}

.desktop-welcome .flex {
  justify-content: center;
}

.desktop-welcome h2 {
  background: linear-gradient(135deg, #374151, #15803d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.desktop-welcome p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Right column login form positioning */
.desktop-layout .grid > div:last-child {
  display: flex;
  justify-content: flex-end;
}

.desktop-layout #login-form {
  width: 100%;
  max-width: 28rem; /* max-w-md */
}

/* Responsive adjustments for the two-column layout */
@media (max-width: 1023px) {
  /* Stack columns on tablet and mobile */
  .desktop-layout .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  .desktop-welcome {
    text-align: center !important;
  }

  .desktop-welcome .flex {
    justify-content: center !important;
  }

  .desktop-welcome h2 {
    font-size: 2.25rem !important;
  }

  .desktop-layout .grid > div:last-child {
    justify-content: center !important;
  }
}

/* Navigation logo stays small and proportional */
nav .company-logo {
  width: 24px !important;
  height: 32px !important;
}

/* Simple layout fix */
body {
  margin: 0;
  padding: 0;
}

main {
  padding-top: 2.5rem; /* Reduced padding for tighter spacing */
}

#auth-section {
  min-height: calc(100vh - 3.5rem);
  position: relative;
}

#dashboard-section {
  min-height: calc(100vh - 2.5rem);
}

/* Ensure dashboard content appears above the gradient overlay */
#dashboard-section > * {
  position: relative;
  z-index: 2;
}

/* Logo animation on page load */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.company-logo.animate-in {
  animation: logoFadeIn 0.6s ease-out forwards;
}

/* Corporate Color Scheme - Silver/Gray and Green */
#auth-section,
#dashboard-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #d1e7dd 75%, #a3cfbb 100%);
  background-attachment: fixed;
  position: relative;
}

/* Enhanced gradient with subtle pattern overlay */
#auth-section::before,
#dashboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure dashboard content appears above the overlay */
#dashboard-section > * {
  position: relative;
  z-index: 2;
}

/* Corporate Button Styles - Darker Green Primary */
.btn-primary {
  background-color: #15803d !important;
  border-color: #15803d !important;
  color: white !important;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #166534 !important;
  border-color: #166534 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}

.btn-primary:focus {
  ring-color: rgba(21, 128, 61, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

/* Corporate Button Outline - Darker Green */
.btn-outline {
  border-color: #15803d !important;
  color: #15803d !important;
  background-color: transparent !important;
}

.btn-outline:hover {
  background-color: #f0fdf4 !important;
  border-color: #166534 !important;
  color: #166534 !important;
}

/* Corporate Secondary Button - Silver/Gray */
.btn-secondary {
  background-color: #6b7280 !important;
  border-color: #6b7280 !important;
  color: white !important;
}

.btn-secondary:hover {
  background-color: #4b5563 !important;
  border-color: #4b5563 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Corporate Form Input Styles */
.form-input:focus {
  border-color: #15803d !important;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1) !important;
  outline: none;
}

.form-input {
  border-color: #d1d5db !important;
  transition: all 0.2s ease-in-out;
}

.form-input:hover {
  border-color: #9ca3af !important;
}

/* Corporate Checkbox Styles */
.checkbox-style {
  border-color: #d1d5db !important;
  color: #15803d !important;
}

.checkbox-style:focus {
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1) !important;
}

.checkbox-style:checked {
  background-color: #15803d !important;
  border-color: #15803d !important;
}

/* Corporate Link Colors */
a.text-primary-600,
.text-primary-600 {
  color: #15803d !important;
}

a.text-primary-600:hover,
.text-primary-600:hover,
a:hover.text-primary-700,
.hover\:text-primary-700:hover {
  color: #166534 !important;
}

/* Corporate Navigation Styles */
nav {
  background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Corporate Badge Styles */
.bg-blue-100 {
  background-color: #dcfce7 !important;
}

.text-blue-800 {
  color: #14532d !important;
}

.bg-green-100 {
  background-color: #dcfce7 !important;
}

.text-green-800 {
  color: #14532d !important;
}

/* Corporate Success/Status Colors */
.bg-green-50 {
  background-color: #f0fdf4 !important;
}

.border-green-200 {
  border-color: #bbf7d0 !important;
}

.text-green-800 {
  color: #14532d !important;
}

/* Corporate Alert/Notification Colors */
.bg-red-100 {
  background-color: #fee2e2 !important;
}

.text-red-800 {
  color: #991b1b !important;
}

/* Corporate Dashboard Stats Cards */
.bg-blue-600 {
  background-color: #15803d !important;
}

.bg-green-600 {
  background-color: #166534 !important;
}

/* Corporate Modal Focus */
.modal-content:focus {
  outline: 3px solid #15803d !important;
  outline-offset: 2px;
}

/* Corporate Menu Item Focus */
[role='menuitem']:focus {
  background-color: #f0fdf4 !important;
}

/* Elegant Auth Footer - only visible in auth section */
.auth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  display: none; /* Hidden by default */
}

/* Show footer only for login/auth pages */
.auth-page .auth-footer {
  display: block;
}

/* Ensure footer doesn't overlap content on small screens */
@media (max-height: 600px) {
  .auth-footer {
    position: static;
    margin-top: 2rem;
  }

  #auth-section {
    min-height: auto;
    padding-bottom: 2rem;
  }
}

.auth-footer-content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.auth-footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-weight: 500;
}

.auth-footer-links a:hover {
  color: #15803d;
}

.auth-footer-separator {
  color: #9ca3af;
  font-weight: bold;
}

.auth-footer-copyright {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

.auth-footer-copyright p {
  margin: 0;
  font-weight: 400;
}

/* Mobile footer adjustments */
@media (max-width: 640px) {
  .auth-footer {
    padding: 1rem;
  }

  .auth-footer-content {
    gap: 0.25rem;
  }

  .auth-footer-links {
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .auth-footer-copyright {
    font-size: 0.6875rem;
  }
}

/* Corporate Ring Colors - Silver/Gray */
.ring-gray-300 {
  --tw-ring-color: #d1d5db !important;
}

/* Update ring color to match corporate silver/gray */
.ring-2.ring-gray-300 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width)
    var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width))
    var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: #d1d5db;
}

/* Password Strength Indicator Styles */
.password-strength-weak {
  background-color: #ef4444;
  width: 20%;
}

.password-strength-fair {
  background-color: #f97316;
  width: 40%;
}

.password-strength-good {
  background-color: #eab308;
  width: 60%;
}

.password-strength-strong {
  background-color: #22c55e;
  width: 80%;
}

.password-strength-very-strong {
  background-color: #16a34a;
  width: 100%;
}

.requirement-icon {
  font-weight: bold;
  color: #ef4444;
}

.requirement-met .requirement-icon {
  color: #22c55e;
}

.password-match-success {
  color: #22c55e;
}

.password-match-error {
  color: #ef4444;
}
