@charset "UTF-8";
/* Login Page Specific Styles */

/* Header Adjustments for Login Page */
.header-logo {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row !important;
}

.header-logo img {
  flex-shrink: 0;
  display: block;
}

.Unifying_Services {
  white-space: nowrap;
  display: inline-block;
}

/* Ensure header container is flex */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header links layout */
.header-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* Home button spacing before burger menu */
.header-links > a[href="index.html"].desktop-only {
  margin-right: 80px;
}

/* Ensure burger menu is properly positioned */
.b_menu {
  margin-left: 0;
}

/* Auth Main Container */
.auth-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 40px;
  position: relative;
}

/* Auth Section */
.auth-section {
  background-color: var(--white);
  position: relative;
  border: 2px solid var(--secondary);
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-section h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.75rem;
}

/* Auth Toggle Tabs */
.auth-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

.auth-toggle .common-button {
  flex: 1;
  background-color: transparent;
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.auth-toggle .common-button.active {
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: bold;
}

.auth-toggle .common-button:hover:not(.active) {
  background-color: rgba(255, 203, 8, 0.1);
  color: var(--primary);
}

.auth-toggle .common-button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Form Styling */
.lead-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 203, 8, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

.form-help {
  font-size: 0.85rem;
  color: #525252; /* Darker grey for better contrast (WCAG AA compliant) */
  font-style: italic;
}

/* Fieldsets */
fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 0.5rem 0;
  background-color: var(--white-alt);
}

legend {
  font-weight: bold;
  color: var(--primary);
  padding: 0 0.5rem;
  font-size: 1.1rem;
}

.optional-label {
  font-weight: normal;
  font-size: 0.9rem;
  color: #525252; /* Improved contrast for better readability */
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #525252; /* Improved contrast for better readability */
}

.text-link {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: var(--secondary);
}

.text-link:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Submit Button Override */
.lead-form .common2-button-style {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 48px;
  font-size: 1.1rem;
}

/* Hidden Form */
.hidden {
  display: none;
}

/* Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-main {
    padding: 100px 15px 20px;
  }
  
  .auth-section {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .auth-section h2 {
    font-size: 1.5rem;
  }
  
  .auth-toggle .common-button {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  
  fieldset {
    padding: 1rem;
  }
  
  legend {
    font-size: 1rem;
  }
  
  /* Keep header layout on mobile */
  .header-logo {
    gap: 0.5rem;
  }
  
  .header-logo img {
    width: 35px;
    height: 35px;
  }
  
  .Unifying_Services {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 1.25rem;
  }
  
  .auth-section h2 {
    font-size: 1.35rem;
  }
  
  .auth-toggle {
    gap: 0.25rem;
  }
  
  .auth-toggle .common-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .form-group input {
    padding: 0.65rem;
    font-size: 0.95rem;
  }
  
  .lead-form .common2-button-style {
    font-size: 1rem;
    min-height: 44px;
  }
  
  /* Smaller logo on very small screens */
  .header-logo img {
    width: 30px;
    height: 30px;
  }
  
  .Unifying_Services {
    font-size: 1rem;
  }
}