/**
 * Enhanced auth modal styling
 */

/* Auth modal header */
.auth-header {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 15px;
}

.auth-header h2 {
  margin: 0;
  font-weight: 600;
  color: #333;
}

/* Enhance auth modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  padding: 25px;
  border-radius: 10px;
  width: 98%;
  max-width: 1600px;
  max-height: 95vh;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

/* Improve auth tabs styling */
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.auth-tab:hover {
  color: #333;
}

.auth-tab.active {
  color: #4CAF50;
  font-weight: bold;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4CAF50;
  animation: tabHighlight 0.3s ease;
}

@keyframes tabHighlight {
  from { width: 0; left: 50%; }
  to { width: 100%; left: 0; }
}

/* Form styling */
.auth-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.auth-form button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
}

.auth-message {
  margin-top: 15px;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
}

.auth-message.error {
  background-color: #ffebee;
  color: #d32f2f;
}

.auth-message.success {
  background-color: #e8f5e9;
  color: #388e3c;
}

/* Auth form visibility classes */
.auth-form-hidden {
  display: none !important;
}

.auth-form-visible {
  display: block !important;
}

/* Enhanced Registration Form Styling */
.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.registration-full-width {
  grid-column: 1 / -1;
}

.terms-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.terms-section h4 {
  margin: 0 0 15px 0;
  color: #2c5530;
  font-size: 16px;
  font-weight: 600;
}

.terms-summary {
  background: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #4CAF50;
}

.terms-summary h5 {
  margin: 0 0 10px 0;
  color: #2c5530;
  font-size: 14px;
  font-weight: 600;
}

.terms-summary ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.terms-summary li {
  margin: 5px 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.terms-summary strong {
  color: #2c5530;
  font-weight: 600;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-group label {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
}

.checkbox-group label a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.required-asterisk {
  color: #d32f2f;
  font-weight: bold;
  margin-left: 2px;
}

.optional-label {
  color: #666;
  font-size: 12px;
  font-style: italic;
  margin-left: 5px;
}

/* Enhanced form inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  background: #fafafa;
}

.form-group input:valid {
  border-color: #28a745;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.form-help {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
  display: block;
}

/* Registration button styling */
#register-form .btn-primary {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border: none;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
  color: white;
  width: 100%;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#register-form .btn-primary:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

#register-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#register-form .btn-primary i {
  font-size: 14px;
}

/* Header styling */
#register-form h3 {
  color: #2c5530;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

#register-form .subtitle {
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

/* Modal enhancements */
.auth-modal {
  border-radius: 12px;
  overflow: hidden;
}

.modal-content {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Form validation styling */
.form-group input.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.43-.52L3.3 5.73 6.77 2.3c.2-.2.5-.2.7 0 .18.18.18.48 0 .66l-3.9 3.9c-.18.18-.48.18-.66 0L1.64 6.29c-.18-.18-.18-.48 0-.66.2-.2.5-.2.66 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-group input.is-invalid {
  border-color: #dc3545;
}

/* Enhanced checkbox styling */
.checkbox-group input[type="checkbox"] {

  accent-color: #4CAF50;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .registration-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .terms-section {
    padding: 15px;
  }
  
  .checkbox-group {
    padding: 8px;
  }
}

/* Resend verification button styling */
.resend-verification-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.resend-verification-btn:hover {
  background: #45a049;
}

.resend-verification-btn:active {
  transform: translateY(1px);
}

.resend-verification-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
}
