body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../assets/filipino_cuisine_hero_bg_1773753017240.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Modal styles */
.modal-content {
  border-radius: 12px;
  animation: fadeInScale 0.3s ease forwards;
}

#messageModalHeader.bg-success {
  background-color: white !important;
  color: white !important;
}

#messageModalHeader.bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Input validation styles */
input:invalid {
  border-color: #dc3545 !important; /* Bootstrap danger red */
  box-shadow: 0 0 5px #dc3545;
}

input:valid {
  border-color: #28a745 !important; /* Bootstrap success green */
  box-shadow: 0 0 5px #28a745;
}

/* Error message styles */
.validation-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Auth Card Modernization */
.auth-container {
  perspective: 1000px;
  width: 100%;
  max-width: 450px;
  margin: 1.5rem auto;
  padding: 0 15px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-card:hover {
  transform: translateY(-5px);
}

.auth-title {
  color: #dc3545;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.auth-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #dc3545;
  border-radius: 2px;
}

/* Modern Inputs */
.form-control {
  border-radius: 12px;
  padding: 12px 16px;
  border: 2px solid #f8f9fa;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #fff;
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #495057;
  transition: color 0.3s ease;
}

.mb-3:focus-within .form-label {
  color: #dc3545;
}

/* Buttons */
.btn-danger {
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger {
  border-radius: 12px;
  border: 2px solid #dc3545;
  font-weight: 600;
}

#googleSignInBtn {
  background-color: white !important;
  color: #444 !important;
  border: 1px solid #ddd !important;
  color: #333 !important;
}

#googleSignInBtn:hover {
  background-color: #f8f9fa !important;
  border-color: #ccc !important;
}

/* Switch Animation */
.auth-switch-fade {
  animation: slideFade 0.4s ease forwards;
}

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

/* Back Button Optimization */
#backToHomeBtn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1100;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  background: white !important;
  color: #dc3545 !important;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

#backToHomeBtn:hover {
    transform: scale(1.1);
    background: #dc3545 !important;
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.25rem;
    margin: 0;
    border-radius: 16px;
  }
  .auth-title {
    font-size: 1.5rem;
  }
}

/* Existing utility styles preserved */
/* Password strength meter styles */
#passwordStrengthMeter {
  width: 100%;
  height: 6px;
  background-color: #eee;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

#passwordStrengthMeter > div {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* Smooth transition for inputs */
input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
