 @import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url("src/images/baby-banner.webp") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fredoka', sans-serif;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(135, 206, 250, 0.3));
  pointer-events: none;
  z-index: 0;
}

.login-card {
  width: 100%;
  max-width: 550px;
  min-height: 620px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: fadeInUp 0.8s ease-in-out;
  position: relative;
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

h3.text-center {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(135deg, #ff6b9d, #ffa500, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

h3 i.fa-star {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mb-3 {
  margin-bottom: 1rem;
}

.form-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  font-family: 'Fredoka', sans-serif;
}

.form-control:focus {
  border-color: #ff6b9d;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.form-control.is-invalid {
  border-color: #ef4444;
  background: rgba(254, 242, 242, 0.9);
}

.btn {
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5a8c, #ff7a9a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.w-100 {
  width: 100%;
}

.btn-guest {
  background: linear-gradient(135deg, #a0aec0, #cbd5e0);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(160, 174, 192, 0.3);
}

.btn-guest:hover {
  background: linear-gradient(135deg, #718096, #a0aec0);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.4);
}

.btn-link {
  background: linear-gradient(135deg, #fbbf24, #fcd34d);
  color: #78350f;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
  display: inline-block;
}

.btn-link:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #78350f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.text-primary {
  color: #3b82f6 !important;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  background: none !important;
}

.text-primary:hover {
  color: #2563eb !important;
  background: rgba(59, 130, 246, 0.1) !important;
}

.alert {
  border-radius: 12px;
  border: none;
  font-weight: 500;
  animation: shake 0.5s ease-in-out;
  padding: 12px;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #fee;
  color: #c00;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.text-muted {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.d-flex {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.justify-content-between {
  justify-content: space-between;
}

.mt-3 {
  margin-top: 1rem;
}

@media (max-width: 576px) {
  body {
        justify-content: flex-start;
    align-items: flex-start;
  }

  .login-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: none;
  }

  h3 {
    font-size: 1.8rem;
  }

  .form-control, .btn {
    font-size: 1.1rem;
    padding: 14px;
  }

  .btn-primary {
    font-size: 1.2rem;
    padding: 16px;
  }
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #f5f5f5; /* soft grey */
  color: #000; /* black text */
  font-weight: 500;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-btn img {
  width: 22px;
  height: 22px;
}

.google-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.google-btn span {
  color: #000;
}