/* Global styles */

/* Shared overlay styling */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

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

/* Speech bubble style */
.bubble {
  background: white;
  border-radius: 16px;
  padding: 20px 30px;
  font-size: 16px;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 320px;
  text-align: center;   /* center the message text */
}

/* Close button */
.close-btn {
  margin-top: 15px;
  background: #f0f0f0;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.close-btn:hover {
  background: #ddd;
}

.overlay-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.action-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* message style */
.messages li {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
}

/* Django message types */
.messages li.success {
  background: #e8f9e8;
  color: #2f6627;
  border: 1px solid #a6d8a6;
}


.messages li.error {
  background: #fdeaea;
  color: #7d1f1f;
  border: 1px solid #f2a6a6;
}

.messages li.warning {
  background-color: #fff3cd;
  color: #856404;
}

.messages li.info {
  background-color: #d1ecf1;
  color: #0c5460;
}


/* === Signup Form Container === */
.form-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 40px auto;
  padding: 20px;
}

/* === Registration Form === */
.registration-form {
  width: 90%;
  max-width: 420px;
  background: linear-gradient(135deg, #5a4b3a 0%, #4b3621 100%); /* Slightly lighter/different mocha */
  border-radius: 16px;
  padding: 35px 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #f5f5f0; /* light sand text */
  animation: fadeIn 0.4s ease-out;
}

/* Headings */
.registration-form h1,
.registration-form h2,
.registration-form p,
.registration-form label {
  color: #f5f5f0; /* light sand text */
}

.registration-form h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 3px solid #d4af37; /* gold accent underline */
  display: inline-block;
  padding-bottom: 6px;
}

/* === Input Fields === */
.form-group {
  margin-bottom: 18px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d6c6a5;
  border-radius: 8px;
  background: #f5f5f0; /* sand input background */
  color: #2f2a23; /* mocha text */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #d4af37; /* gold */
  box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
  background: #fff;
}

/* === Submit Button (Sand) === */
.btn-primary {
  width: 100%;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 40px;
  border: 1.5px solid #d4af37; /* gold border */
  background: linear-gradient(135deg, #e8dfc9, #d6c6a5);
  color: #2f2a23;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d6c6a5, #c8b690);
  border-color: #c5a028;
  color: #1e1a15;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* === Mobile === */
@media (max-width: 768px) {
  .registration-form {
    padding: 25px 18px;
  }
  .registration-form h1 {
    font-size: 1.4rem;
  }
  .btn-primary {
    font-size: 0.95rem;
  }
}
