/*
 * Form styles and components
 */

/* Form Styles */
.registration-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.registration-form {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 900px;
}

.registration-form h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.form-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #ecf0f1;
}

.field label {
  display: block;
  font-weight: 500;
  color: #2c3e50;
}

/* Field styles are now handled in base.css for consistency */

.field input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  transform: scale(1.2);
}

.field label[for*="remember_me"] {
  display: inline;
  font-weight: normal;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.actions {
  text-align: center;
  margin-top: 2rem;
}

.form-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ecf0f1;
}

.form-links a {
  display: inline-block;
  margin: 5px 10px;
  text-decoration: none;
  color: #3498db;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-links a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.form-links .btn {
  margin: 5px 10px;
}

/* Enhanced Edit Form Styles */
.password-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.password-section h4 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.password-note {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.password-help {
  color: #7f8c8d;
  font-size: 0.8rem;
  display: block;
  margin-top: 0.25rem;
}

.notification {
  background: #e8f4fd;
  border: 1px solid #b3d9ff;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.notification p {
  margin: 0;
  color: #2c3e50;
}

.danger-zone {
  margin-top: 3rem;
  padding: 2rem;
  background: #fdf2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.danger-zone h4 {
  color: #dc2626;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.danger-zone p {
  color: #7f1d1d;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.login-options,
.signup-options {
  margin: 1rem 0;
}

.login-options p,
.signup-options p {
  margin-bottom: 1rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.forgot-password-link,
.confirmation-link,
.unlock-link {
  color: #7f8c8d;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password-link:hover,
.confirmation-link:hover,
.unlock-link:hover {
  color: #3498db;
  text-decoration: underline;
}

/* Form Stage Styling */
.form-stage {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid #007bff;
}

.form-stage h4 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.stage-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.stage-actions .btn {
  min-width: 200px;
}

/* Delivery Days Checkboxes */
.delivery-days-checkboxes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.delivery-days-checkboxes input[type="checkbox"] {
  display: none;
}

.delivery-days-checkboxes label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 50px;
}

.delivery-days-checkboxes label:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.delivery-days-checkboxes input[type="checkbox"]:checked + label {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.form-help {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

/* Mobile responsiveness for forms */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .registration-form {
    padding: 2rem;
  }

  .form-stage {
    padding: 1rem;
  }

  .delivery-days-checkboxes {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .delivery-days-checkboxes label {
    padding: 0.5rem;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .registration-container {
    padding: 0rem;
  }
}
