/* ============================================================
   css/food.css — TIỂU NHỊ FOOD (food.html)
   ------------------------------------------------------------
   Chỉ chứa phần "vỏ" của trang khách đặt món: hero đăng nhập,
   nút chuyển sang 2 app còn lại (quán / tài xế).
   Token lấy từ css/style.css — không hardcode màu ở đây.
   ============================================================ */

body.mode-food {
  background:
    radial-gradient(1200px 420px at 50% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    var(--bg);
}

.food-auth {
  align-items: flex-start;
  padding-top: max(16px, env(safe-area-inset-top));
}

.food-auth-box {
  max-width: 440px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .45);
}

.food-hero {
  text-align: center;
  margin-bottom: 16px;
}

.food-hero-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand-l, #F97316), var(--primary));
  box-shadow: 0 10px 22px -14px var(--primary);
  overflow: hidden;
}

/* Logo app (systemConfig.appLogo / cache) thay icon khi đã cấu hình */
.food-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.food-hero-title {
  font-family: var(--font-head, "Playfair Display", serif);
  font-size: 28px;
  line-height: 1.2;
  color: var(--primary-d);
  margin: 0;
}

.food-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.food-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-d);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--surface));
}

/* Ô mật khẩu + nút hiện/ẩn */
.food-pass-wrap {
  position: relative;
  display: block;
}

.food-pass-wrap input {
  width: 100%;
  padding-right: 44px;
}

.food-pass-eye {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.food-pass-eye:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.food-cta {
  background: linear-gradient(135deg, var(--brand-l, #F97316), var(--primary)) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 22px -16px var(--primary);
}

.food-other-apps {
  display: grid;
  gap: 8px;
}

.food-other-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  font-size: 13px;
}

.food-legal {
  margin-top: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 380px) {
  .food-auth-box { padding: 16px; border-radius: 16px; }
  .food-hero-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .food-auth * { transition: none !important; animation: none !important; }
}
