/* ── AUTH ── */

.auth-container {
  max-width: 440px; /* Slightly wider for better breathing room */
  margin: 60px auto;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(180, 80, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: "DM Sans", sans-serif;
  text-align: center;
}

.auth-container h2 {
  font-family: "Sora", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #1c1004;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.auth-form label {
  display: block;
  text-align: left;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 8px;
  margin-top: 20px; /* Forces space above each label */
}

.auth-form input,
.glass-select-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 24px; /* <--- This forces the space below the inputs! */
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  background: rgba(255, 255, 255, 0.55);
  color: #1c1004;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-form input::placeholder {
  color: #8a6535;
  opacity: 0.7;
}

.auth-form input:focus,
.glass-select-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #1c1004;
  box-shadow: 0 4px 12px rgba(28, 16, 4, 0.08);
}

/* Wrapper to add a custom arrow to the dropdown */
.custom-select-wrapper {
  position: relative;
  margin-bottom: 32px; /* Extra space before the submit button */
}

.custom-select-wrapper::after {
  content: "▼";
  font-size: 10px;
  color: #1c1004;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-btn {
  width: 100%;
  background: #1c1004;
  color: #fff;
  border: none;
  padding: 16px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(28, 16, 4, 0.25);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.auth-btn:hover {
  background: #3a2810;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(28, 16, 4, 0.35);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(28, 16, 4, 0.25);
}

.auth-links {
  margin-top: 28px;
}

.auth-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  border-bottom: 1.5px solid rgba(90, 61, 24, 0.3);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.auth-links a:hover {
  color: #1c1004;
  border-color: #1c1004;
}
/* Base styling for all flash messages */
.flash-msg {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Green Success Message */
.flash-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Red Error Message */
.flash-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Blue Info Message (For OTP/Verification notices) */
.flash-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
/* Yellow for Wrong Emails */
.flash-warning {
  background-color: #fff3cd !important;
  color: #856404 !important;
  border: 1px solid #ffeeba !important;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* Make sure your Red (error) and Green (success) look consistent */
.flash-error {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb !important;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.flash-success {
  background-color: #d4edda !important;
  color: #155724 !important;
  border: 1px solid #c3e6cb !important;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
/* 4. Password Specifics */
.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
  display: block;
}

.password-wrapper input {
  padding-right: 60px !important;
  margin: 0 !important;
}

.text-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;

  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  height: auto !important;
}

.text-toggle:hover {
  color: #1a1008;
}
.flash-msg {
  width: fit-content; /* Stops it from taking 100% width */
  min-width: 300px; /* Gives it a nice minimum size */
  margin: 0 auto 20px auto; /* Centers it horizontally */

  /* Prepares the animation for when JavaScript hides it */
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* =========================================
   BROWSER AUTOFILL OVERRIDE
   Prevents Chrome/Safari from forcing a
   blue or yellow background on autofilled
   inputs. The large inset box-shadow trick
   is the only reliable cross-browser fix.
   ========================================= */
.dash-input:-webkit-autofill,
.dash-input:-webkit-autofill:hover,
.dash-input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  box-shadow: 0 0 0px 1000px #ffffff inset;
  -webkit-text-fill-color: #111827;
  border-color: rgba(0, 0, 0, 0.08) !important;
  transition: background-color 5000s ease-in-out 0s;
}
