/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Body & Background ===== */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("FOOD.jpg"); /* Place food.jpg in same folder as HTML */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* semi-transparent dark overlay */
}

/* ===== Containers ===== */
.container,
.login-container {
  position: relative;
  background: url("FOOD.jpg"); /* ✅ Corrected */
  background-size: cover;
  border-radius: 16px;
  width: 380px;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  padding: 20px;
  z-index: 1;
}

/* ===== Headings ===== */
h1, h2 {
  margin-bottom: 15px;
  color: #185a9d;
}

.subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* ===== Input Groups ===== */
.input-group {
  position: relative;
  margin: 18px 0;
}

.input-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #f9f9f9;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: #2575fc;
  background: white;
  padding: 0 4px;
}
/* Background for logout page */
body.bg-logout {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Logout card styling */
.logout-card {
  max-width: 500px;
  margin: 5rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.logout-card h2 {
  margin-bottom: 1rem;
}

.logout-card p {
  margin-bottom: 2rem;
  color: #555;
}


/* ===== Buttons ===== */
button {
  width: 70px;
  padding: 10px;
  background: #020620;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s ease;
  
}

button:hover {
  background: #185a9d;
}

/* Logout button */
.logout-btn {
  width: 100%;
  margin-bottom: 15px;
}

/* ===== Signup / Login Links ===== */
.signup-text {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.signup-text a {
  color: #2575fc;
  text-decoration: none;
  font-weight: bold;
}

/* ===== Search Box (Nutrition Analyzer) ===== */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.search-box button {
  padding: 12px 18px;
}

/* ===== Nutrition Result Card ===== */
.card {
  background: #f9f9f9;
  padding: 20px;
  margin-top: 15px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.card h3 {
  text-transform: capitalize;
  margin-bottom: 10px;
  color: #333;
}

.card p {
  font-size: 14px;
  margin: 5px 0;
}

/* ===== Fade-in Animation ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
