html,
body {
  height: 100%;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Brand / layout tweaks */
.recipe-card {
  transition: transform 0.2s;
  border: 0;
  overflow: hidden;
}
.recipe-card:hover {
  transform: scale(1.02);
}
.recipe-img {
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
}
.nutrition-info {
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 5px;
  margin: 10px 0;
}
.nutrition-info p {
  margin-bottom: 6px;
  margin-top: 0;
}

/* Button styles copied from index.php for consistent brand */
.btn-main {
  color: #fff;
  background-color: #8e4190;
  border-color: #8e4190;
}
.btn-main:hover,
.btn-main:focus {
  background-color: #7a377a;
  border-color: #7a377a;
  color: #fff;
}
.btn-main:active {
  background-color: #6b2c6e;
  border-color: #6b2c6e;
}

.card-title {
  color: #4b2149; /* subtle dark brand tint */
  font-weight: 600;
}

/* Page header / logo */
.search-header {
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.search-header .brand-logo {
  /* Constrained logo size for header. Kept here to centralize branding styles. */
  width: 180px;
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 8px;
}
@media (max-width: 576px) {
  .search-header .brand-logo {
    width: 140px;
    max-width: 140px;
  }
}
.search-header h1 {
  color: #8e4190;
  font-weight: 700;
  margin: 0 0 8px 0;
}