/* General Styling */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5dc; /* Creamy white */
  color: #5c4033; /* Rich brown */
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.logo-container {
  width: 100%;
  max-width: 1200px;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 120px;
  width: auto;
  margin: 0;
}

.logo h1 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.register-container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}



.register-container h1 {
  color: #d4a373; /* Warm terracotta */
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

p {
  color: #5c4033; /* Rich brown */
  margin-bottom: 2rem;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.signup-btn {
  flex: 1;
  padding: 1rem;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#client-signup-btn {
  background-color: #d4a373;
}

#braider-signup-btn {
  background-color: #5c4033;
}

.signup-btn:hover {
  background-color: #b22222;
  transform: scale(1.05);
}

/* Form Styling */
#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group:last-of-type {
  margin-bottom: 2rem;
}

label {
  font-weight: 500;
  color: #5c4033; /* Rich brown */
}

input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #d4a373; /* Warm terracotta */
  outline: none;
}

.register-button {
  padding: 0.75rem 1.5rem;
  background-color: #d4a373; /* Warm terracotta */
  color: #ffffff;
  border: none;
  border-radius: 25px; /* Bubbled buttons */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
  width: 100%;
}

.register-button:hover {
  background-color: #b22222; /* Vibrant red */
}

.login-redirect {
  margin-top: 1rem;
  color: #5c4033; /* Rich brown */
}

.login-redirect a {
  color: #d4a373; /* Warm terracotta */
  text-decoration: none;
  font-weight: 500;
}

.login-redirect a:hover {
  text-decoration: underline;
}

/* Switch Button Styling */
.switch-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: transparent;
  color: #d4a373; /* Warm terracotta */
  border: 2px solid #d4a373;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.switch-btn:hover {
  background-color: #d4a373; /* Warm terracotta */
  color: #ffffff; /* White */
}

/* Inverted Color Scheme for Braider Sign Up */
body.braider-mode {
  background-color: #5c4033; /* Rich brown */
  color: #f5f5dc; /* Creamy white */
}

/* Consent Styling */
.consent-group {
  margin: 0.5rem 0;
  text-align: left;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #8b7355; /* Muted brown */
}

.checkbox-container input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.consent-text {
  line-height: 1.2;
}

.consent-text a {
  color: #d4a373; /* Warm terracotta to match your theme */
  text-decoration: none;
  transition: color 0.3s ease;
}

.consent-text a:hover {
  color: #b22222; /* Vibrant red on hover */
  text-decoration: underline;
}

.consent-note {
  margin: 4px 0 0 22px;
  font-size: 10px;
  color: #b22222;
  font-style: italic;
}

.back-button {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: transparent;
  color: #8b7355;
  border: 1px solid #8b7355;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #8b7355;
  color: #ffffff;
}

/* Adjust consent styling for braider mode */
body.braider-mode .checkbox-container {
  color: #d4b895; /* Lighter color for dark mode */
}

body.braider-mode .consent-note {
  color: #ff6b6b;
}

/* Rest of the CSS styles... */

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #5c4033;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

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

.modal-body {
  color: #5c4033;
  line-height: 1.6;
}

/* Dark mode support for modal */
body.braider-mode .modal-content {
  background-color: #ffffff;
  color: #5c4033;
}

body.braider-mode .modal-header h2 {
  color: #d4a373;
}

body.braider-mode .close-modal {
  color: #5c4033;
}

body.braider-mode .close-modal:hover {
  color: #b22222;
}

.field-error {
  color: #ff3b30;
  margin-top: 5px;
  font-size: 0.9rem;
}

.form-error-container {
  background-color: #fff5f5;
  border-left: 4px solid #ff3b30;
  color: #bf1a1a;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

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