:root {
  --primary: #5d8f3ee6;
  --primary-hover: #1e3a8a;
  --secondary: #0f766e;
  --secondary-hover: #115e59;
  --accent: #e9f1e6;
  --accent-hover: #bae6fd;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background: #f8fafc;
  --background-light: #f1f5f9;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

a {
  text-decoration: none;
  color: #5D8F3E;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji"
    color: var(--text-primary);
  line-height: 1.5;
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary\/90 {
  background-color: var(--primary-hover);
}

.text-primary {
  color: var(--primary);
}

.border-primary {
  border-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-secondary\/90 {
  background-color: var(--secondary-hover);
}

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

.bg-accent {
  background-color: var(--accent);
}

.bg-accent\/80 {
  background-color: var(--accent-hover);
}

/* Registration Form */

/*Radio group*/
.user-type-toggle {
  display: flex;
  margin-bottom: 1.5rem;
}

.user-type-toggle label {
  display: flex;
  flex: 1;
}

.user-type-toggle button {
  flex: 1;
  padding: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.user-type-toggle button.active {
  background-color: #5D8F3E;
  color: white;
}

.user-type-toggle button:not(.active) {
  background-color: #f3f4f6;
  color: #4b5563;
}

.user-type-toggle button:not(.active):hover {
  background-color: #e5e7eb;
}

.radio-label {
  flex: 1;
  padding: 0.75rem;
  font-weight: 500;
  background-color: #f3f4f6;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
  text-decoration: line-through;
  color: #4b5563;
  user-select: none;
}

input[type="radio"]:checked+.radio-label {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  flex: 1;
  padding: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

input[type="radio"] {
  display: none;
}
/*Radio group*/

.form-container {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 0 1rem;
}

.form-container button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.form-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6b7280;
}



.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: #9ca3af;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  background-color: #fff;
}

.form-select:focus {
  outline: none;
  border-color: #5D8F3E;
  box-shadow: 0 0 0 3px rgba(93, 143, 62, 0.1);
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #5D8F3E;
  box-shadow: 0 0 0 3px rgba(93, 143, 62, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.checkbox-input {
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.submit-btn {
  width: 100%;
  background-color: #5D8F3E;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #4d7934;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Additional custom styles */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobileMenu.hidden {
  max-height: 0;
}

#mobileMenu:not(.hidden) {
  max-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .text-xl {
    font-size: 1.125rem;
  }
}

/* Alert */
.alert {
position: relative;
margin-bottom: 1.5rem;
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid #fcd34d;
background-color: #fffbeb;
max-width: 36rem;
margin: 3rem auto;
}

.alert-icon {
position: absolute;
left: 1rem;
top: 1rem;
color: #f59e0b;
}

.alert-content {
padding-left: 2rem;
display: flex;
justify-content: space-between;
width: 100%;
}

.alert-title {
font-weight: 600;
font-size: 1rem;
margin-bottom: 0.25rem;
color: #92400e;
}

.alert-description {
font-size: 0.875rem;
color: #b45309;
}

.alert-close {
background: none;
border: none;
cursor: pointer;
color: #f59e0b;
padding: 0.25rem;
}

.alert-close:hover {
color: #d97706;
}

/* Focus states
  a:focus, 
  button:focus, 
  input:focus, 
  select:focus, 
  textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }*/

/* Form elements 
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="password"]:focus,
  input[type="number"]:focus,
  select:focus,
  textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
    outline: none;
  }*/

/* Button styles */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

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