/* Glassmorphism sign-in pages + show/hide password button (used on every page) */

/* ---------- Password eye button ---------- */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 46px !important; }
.pw-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: inherit; opacity: .6;
  cursor: pointer; transition: opacity .15s, background .15s;
}
.pw-eye:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.pw-eye:focus-visible { outline: 2px solid var(--brand, #ea580c); outline-offset: 1px; opacity: 1; }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye .eye-off { display: none; }
.pw-eye[aria-pressed="true"] .eye-on { display: none; }
.pw-eye[aria-pressed="true"] .eye-off { display: block; }

/* ---------- Glass scene (background) ---------- */
.glass-scene {
  --g1: var(--brand, #ea580c);
  --g2: #7c3aed;
  --g3: #0ea5e9;
  position: relative; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 800px at 10% -10%, color-mix(in srgb, var(--g1) 55%, #0b1020), transparent 60%),
              radial-gradient(900px 700px at 110% 110%, color-mix(in srgb, var(--g2) 45%, #0b1020), transparent 60%),
              #0b1020;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.glass-scene.scene-kitchen { --g2: #be123c; --g3: #f59e0b; }
.glass-scene.scene-admin   { --g2: #4f46e5; --g3: #06b6d4; }
.glass-scene.scene-light {
  background: radial-gradient(900px 600px at 0% 0%, color-mix(in srgb, var(--g1) 28%, #fff), transparent 60%),
              radial-gradient(800px 600px at 100% 100%, color-mix(in srgb, var(--g2) 18%, #fff), transparent 60%),
              #faf8f5;
  min-height: calc(100vh - 64px);
}
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 18s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: var(--g1); top: -120px; left: -80px; }
.blob.b2 { width: 360px; height: 360px; background: var(--g2); bottom: -120px; right: -60px; animation-delay: -6s; }
.blob.b3 { width: 260px; height: 260px; background: var(--g3); top: 40%; left: 55%; animation-delay: -12s; opacity: .35; }
.scene-light .blob { opacity: .28; }
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(.95); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- Glass card ---------- */
.glass-card {
  position: relative; width: 100%; max-width: 420px; padding: 34px 30px 28px;
  border-radius: 24px; color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgba(20, 24, 40, .88); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.glass-card h1 { margin: 6px 0 4px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.glass-card .sub { margin: 0 0 22px; text-align: center; color: rgba(255, 255, 255, .72); font-size: .93rem; }
.glass-card .brand-logo, .glass-card .brand-mark { display: block; margin: 0 auto 10px; }
.glass-card .brand-mark { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand, #ea580c), color-mix(in srgb, var(--brand, #ea580c) 55%, #000)); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.glass-card .brand-logo { height: 64px; width: auto; max-width: 170px; border-radius: 14px; background: rgba(255,255,255,.9); padding: 4px; }
.glass-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 6px; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.glass-badge-row { text-align: center; }

/* Fields */
.g-field { display: block; margin-bottom: 16px; text-align: left; }
.g-field > span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: rgba(255,255,255,.85); }
.g-input { position: relative; display: block; }
.g-input > svg.lead { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: .65; pointer-events: none; z-index: 1; }
.g-input input {
  width: 100%; font: inherit; color: #fff; padding: 13px 14px 13px 42px; border-radius: 14px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  transition: border-color .15s, background .15s, box-shadow .15s; outline: none;
}
.g-input input::placeholder { color: rgba(255, 255, 255, .45); }
.g-input input:focus { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.g-input input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; box-shadow: inset 0 0 0 40px rgba(40, 44, 70, .9); }
.g-input .pw-eye { color: #fff; }

.g-btn {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 18px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--brand, #ea580c), color-mix(in srgb, var(--brand, #ea580c) 60%, #7c3aed));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand, #ea580c) 45%, transparent);
  transition: transform .1s, filter .15s, box-shadow .15s; margin-top: 4px;
}
.g-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 36px color-mix(in srgb, var(--brand, #ea580c) 55%, transparent); }
.g-btn:active { transform: scale(.985); }
.g-btn[disabled] { opacity: .7; cursor: wait; }

.g-alert { padding: 11px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; text-align: left;
  background: rgba(239, 68, 68, .18); border: 1px solid rgba(252, 165, 165, .45); color: #fee2e2; }
.g-alert.ok { background: rgba(34, 197, 94, .16); border-color: rgba(134, 239, 172, .45); color: #dcfce7; }
.g-links { margin-top: 18px; text-align: center; font-size: .88rem; color: rgba(255,255,255,.7); }
.g-links a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.g-links a:hover { border-color: #fff; }
.g-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .8rem; color: rgba(255,255,255,.55); }
.g-foot a { color: rgba(255,255,255,.8); }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-row .g-input input { padding-left: 14px; }
@media (max-width: 480px) {
  .glass-card { padding: 28px 20px 22px; border-radius: 20px; }
  .g-row { grid-template-columns: 1fr; gap: 0; }
}

/* Light variant (customer pages: sits on the light website) */
.scene-light .glass-card { color: #1c1917; background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 30px 70px rgba(28, 25, 23, .14), inset 0 1px 0 rgba(255,255,255,.9); }
.scene-light .glass-card .sub, .scene-light .g-links { color: #57534e; }
.scene-light .g-field > span { color: #44403c; }
.scene-light .g-input input { color: #1c1917; background: rgba(255,255,255,.7); border-color: rgba(28,25,23,.12); }
.scene-light .g-input input::placeholder { color: #a8a29e; }
.scene-light .g-input input:focus { background: #fff; border-color: var(--brand, #c2410c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #c2410c) 16%, transparent); }
.scene-light .g-input input:-webkit-autofill { -webkit-text-fill-color: #1c1917; box-shadow: inset 0 0 0 40px #fff; }
.scene-light .g-input .pw-eye { color: #44403c; }
.scene-light .g-links a { color: var(--brand, #c2410c); border-color: color-mix(in srgb, var(--brand, #c2410c) 35%, transparent); }
.scene-light .g-alert { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.scene-light .g-alert.ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.scene-light .glass-badge { background: rgba(255,255,255,.7); border-color: rgba(28,25,23,.08); color: #57534e; }
.scene-light .g-foot { border-color: rgba(28,25,23,.08); color: #78716c; }

/* Full-height light scene (admin / takeaway sign-in, no top bar) */
.glass-scene.scene-full { min-height: 100vh; }
.scene-light .brand-logo { background: #fff; box-shadow: 0 8px 24px rgba(28,25,23,.10); }
.scene-light .g-foot a { color: var(--brand, #c2410c); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand, #c2410c) 35%, transparent); }
.scene-light .g-foot a:hover { border-color: var(--brand, #c2410c); }
