:root{
  --bg:#fff8f5; --card:#ffffff; --text:#111827; --muted:#6b7280; --border:#eed7cf;
  --primary:#f97316; --primary-hover:#ea580c; --ring:#fed7aa; --success:#059669; --error:#dc2626;
  --tomato: rgba(244,63,94,.28);
  --mustard: rgba(234,179,8,.28);
  --basil: rgba(16,185,129,.28);
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", "Noto Sans", Arial, sans-serif;
  display:grid; place-items:center; padding:24px; position:relative; overflow-x:hidden;
}
/* Foodie blurred blobs */
body::before{
  content:""; position:fixed; inset:-20% -10% auto -10%; height:70vh; z-index:-2;
  background:
    radial-gradient(180px 140px at 12% 18%, var(--tomato), transparent 60%),
    radial-gradient(220px 160px at 90% 12%, var(--mustard), transparent 60%),
    radial-gradient(200px 200px at 8% 90%, var(--basil), transparent 60%);
  filter: blur(25px);
}
/* Subtle dotted paper texture */
body::after{
  content:""; position:fixed; inset:0; z-index:-3; pointer-events:none; opacity:.5;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

.card{
  width:100%; max-width:560px; background:var(--card); border:1px solid var(--border);
  border-radius:16px; box-shadow: 0 10px 25px rgba(0,0,0,.06);
  padding:24px; overflow:hidden;
}
.header{ display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.logo{ width:40px; height:40px; border-radius:12px; background:linear-gradient(135deg,#fb923c,#ef4444); display:grid; place-items:center; box-shadow:0 6px 14px rgba(249,115,22,.25); }
.logo svg{ width:22px; height:22px; color:#fff; }
h1{ font-size:20px; margin:0; }
.sub{ color:var(--muted); margin:0 0 16px; font-size:13px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 16px; }
.chip{ padding:6px 10px; border-radius:999px; background:#fff; border:1px solid var(--border); color:#a16207; font-weight:600; font-size:12px; }

form{ display:grid; gap:14px; }
.field{ display:grid; gap:6px; }
label{ font-weight:600; }
input[type="text"], input[type="number"], input[type="file"], input[type="password"]{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#fff; color:inherit;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="file"]:focus, input[type="password"]:focus{
  outline:none; border-color:var(--primary); box-shadow:0 0 0 4px var(--ring);
}
.row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.preview{
  display:none; border:1px dashed var(--border); border-radius:12px; padding:10px; align-items:center; gap:12px;
  background:#fafafa;
}
.preview img{ width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--border); }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 14px; border-radius:10px; border:1px solid transparent; color:#fff; background:var(--primary);
  cursor:pointer; font-weight:600; width:100%;
}
.btn:hover{ background:var(--primary-hover); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }
.msg{ margin:6px 2px 0; font-size:13px; }
.msg.success{ color:var(--success); }
.msg.error{ color:var(--error); }
footer{ margin-top:12px; color:var(--muted); font-size:12px; text-align:center; }
@media (max-width: 420px){ .row{ grid-template-columns:1fr; } }
