/* Editable supermarket-themed authentication screens. Brand copy is in auth-ui.js. */
.auth{--auth-green:#008c43;--auth-deep:#004b2c;--auth-bright:#19c64a;--auth-gold:#ffc400;position:relative;isolation:isolate;overflow:hidden;min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:44px clamp(18px,5vw,76px) 92px;background:#f7faf8 url('auth-supermarket-bg.png') center/cover no-repeat;color:#073b28}
.auth:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.26),rgba(255,255,255,.16) 48%,rgba(255,255,255,.3));backdrop-filter:blur(1px)}
.auth-top-note{position:absolute;right:4.5%;top:22px;max-width:300px;color:#fff;font-size:clamp(17px,2vw,27px);font-weight:800;font-style:italic;text-align:right;text-shadow:0 2px 8px #003b26}
.auth-layout{width:min(1440px,100%);display:grid;grid-template-columns:minmax(300px,1fr) minmax(440px,.98fr);align-items:center;gap:clamp(28px,5vw,82px);margin:auto}
.auth-promo{padding:20px 0 24px;max-width:620px;animation:authIn .55s ease both}
.auth-brand{display:flex;align-items:center;gap:22px;margin-bottom:30px}
.auth-brand-mark{width:clamp(84px,11vw,138px);height:clamp(84px,11vw,138px);flex:none;display:grid;place-items:center;border-radius:28%;background:linear-gradient(145deg,#19e85a,#008b43 54%,#003e29);border:2px solid rgba(255,255,255,.85);box-shadow:0 12px 28px #004b2c40;color:#ffcf00;font-size:clamp(48px,6vw,76px);font-weight:950;text-shadow:2px 3px 0 #00552c}
.auth-brand h1{font-size:clamp(34px,4.5vw,64px);line-height:1.02;letter-spacing:-2px;color:#06452c;font-weight:900}
.auth-brand p{font-size:clamp(14px,1.6vw,23px);font-weight:750;font-style:italic;color:#075b39;margin-top:9px}
.auth-intro{max-width:520px;font-size:clamp(20px,2.2vw,30px);line-height:1.25;font-weight:650;font-style:italic;text-align:center;color:#06472e;margin:0 auto 30px}
.auth-benefits{display:flex;justify-content:center;gap:0;max-width:540px;margin:auto}
.auth-benefit{flex:1;display:flex;flex-direction:column;align-items:center;gap:9px;padding:0 12px;text-align:center;font-size:clamp(12px,1.2vw,17px);color:#06472e}
.auth-benefit+.auth-benefit{border-left:1px solid rgba(0,89,49,.35)}
.auth-benefit-icon{width:62px;height:62px;display:grid;place-items:center;border:2px solid #7edda2;border-radius:50%;background:linear-gradient(#e9fff0,#c5f7d6);color:#008b43;font-size:34px;font-weight:900;box-shadow:inset 0 0 0 5px #fff8}
.auth-card{width:100%;max-width:690px;justify-self:end;overflow:visible;border-radius:34px;background:rgba(255,255,255,.96);box-shadow:0 24px 65px rgba(0,45,26,.25);border:1px solid rgba(255,255,255,.9);animation:authIn .5s cubic-bezier(.2,.8,.2,1) both}
.auth-card-ribbon{min-height:94px;margin:-1px auto 0;width:calc(100% - 58px);transform:translateY(-1px);display:flex;align-items:center;justify-content:center;gap:20px;padding:16px 22px;border-radius:0 0 28px 28px;background:linear-gradient(180deg,#19d94b,#008a42 55%,#004c2d);border:2px solid #6cf28c;color:white;box-shadow:0 10px 20px rgba(0,92,45,.2);font-size:clamp(23px,2.6vw,36px)}
.auth-card-ribbon svg{width:44px;height:44px;flex:none}
.auth-card-body{padding:34px clamp(24px,3.2vw,48px) 30px}
.auth-eyebrow{display:none}
.auth-head{display:flex;align-items:center;gap:16px;margin-bottom:6px}
.auth-icon{flex:none;width:60px;height:60px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#18c94d,#005332);box-shadow:0 8px 18px rgba(0,118,57,.25)}
.auth-head h1{font-size:23px;line-height:1.18;font-weight:800;letter-spacing:-.4px;color:#0a2a26}
.auth-head p{margin-top:6px;font-size:11px;font-weight:700;letter-spacing:.2em;color:#66767c}
.auth-label{display:block;margin:4px 0 12px;font-size:clamp(17px,1.7vw,23px);font-weight:800;color:#06472e}
.auth-label:before{content:"";display:inline-block;width:7px;height:28px;border-radius:5px;background:#0ba64d;vertical-align:middle;margin-right:14px}
.auth-input{display:block;width:100%;height:clamp(62px,7vw,90px);padding:0 22px;background:#fff;color:#0f172a;border:2px solid #07964a;border-radius:22px;font-size:clamp(18px,2vw,27px);outline:none;transition:box-shadow .15s,border-color .15s}
.auth-input::placeholder{color:#9ca3af;font-weight:500}
.auth-input:focus-visible{border-color:#00b84b;box-shadow:0 0 0 5px rgba(20,190,80,.17)}
.auth-input-token{font:600 clamp(15px,1.8vw,24px)/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.03em;text-transform:uppercase}
.auth-input-secret{font-size:24px;letter-spacing:.35em}
.auth-input-secret::placeholder{letter-spacing:.35em}
.auth-msg{min-height:20px;margin:10px 2px 14px;font-size:13px;font-weight:650;color:#b91c1c}
.auth-btn{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:clamp(64px,7vw,92px);border:0;border-radius:24px;background:linear-gradient(180deg,#24d82c 0%,#008c43 48%,#00492d 100%);color:#fff;font-size:clamp(22px,2.8vw,36px);font-weight:850;box-shadow:0 10px 20px rgba(0,96,46,.24);transition:filter .15s,transform .15s,box-shadow .15s}
.auth-btn:after{content:"›";position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:1.7em;line-height:.5;margin:0;padding:0;pointer-events:none}
.auth-btn:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 14px 24px rgba(0,96,46,.28)}
.auth-btn:active{transform:none}
.auth-btn:focus-visible,.auth-link:focus-visible{outline:3px solid rgba(20,160,80,.45);outline-offset:3px}
.auth-btn:disabled{opacity:.6;cursor:wait;transform:none}
.auth-link{display:block;margin:20px auto 0;padding:8px 4px;background:none;border:0;font-size:14px;font-weight:700;color:#008744;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.auth-link:hover{color:#004b2c}
.auth-foot{margin:22px 0 0;text-align:center;font-size:11.5px;color:#66767c}
.auth-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}
.auth-hint{margin:16px 0 0;text-align:center;font-size:11.5px;line-height:1.5;color:#66767c}
.auth-bottom{position:absolute;left:0;right:0;bottom:0;min-height:64px;padding:12px 5.2%;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(180deg,rgba(0,81,43,.94),#003d29);border-top:3px solid #f6c900;color:#fff;font-size:13px}
.auth-bottom-cart{font-size:35px;opacity:.7}
@keyframes authIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:900px){.auth{padding:78px 18px 84px}.auth-layout{grid-template-columns:1fr;gap:20px;max-width:650px}.auth-promo{padding:0 0 8px}.auth-brand{justify-content:center;margin-bottom:16px}.auth-brand-mark{width:66px;height:66px;font-size:40px;border-radius:20px}.auth-brand h1{font-size:34px;letter-spacing:-1px}.auth-brand p{font-size:13px}.auth-intro{font-size:17px;margin-bottom:14px}.auth-benefits{max-width:480px}.auth-benefit-icon{width:42px;height:42px;font-size:24px}.auth-benefit{font-size:11px;gap:5px}.auth-card{justify-self:center;max-width:560px}.auth-card-ribbon{min-height:70px;font-size:23px}.auth-card-body{padding:25px 26px}.auth-top-note{top:15px;right:18px;font-size:14px}}
@media(max-width:520px){.auth{padding:66px 12px 78px;background-position:42% center}.auth-layout{gap:12px}.auth-brand{gap:12px}.auth-brand h1{font-size:28px}.auth-brand p{font-size:11px}.auth-intro{font-size:15px}.auth-benefit{padding:0 6px;font-size:10px}.auth-benefit-icon{width:38px;height:38px}.auth-card{border-radius:24px}.auth-card-ribbon{width:calc(100% - 28px);min-height:60px;border-radius:0 0 20px 20px;font-size:20px;gap:12px}.auth-card-ribbon svg{width:34px;height:34px}.auth-card-body{padding:22px 17px}.auth-label{font-size:16px}.auth-input{height:60px;border-radius:16px;padding:0 14px;font-size:18px}.auth-input-token{font-size:14px}.auth-btn{min-height:62px;border-radius:17px;font-size:22px}.auth-bottom{min-height:55px;font-size:11px}.auth-bottom-cart{font-size:27px}}
@media(prefers-reduced-motion:reduce){.auth-card,.auth-promo{animation:none}.auth-btn{transition:none}}

/* Owner Dashboard: editable business logo preview */
.auth-brand-mark{overflow:hidden;padding:8px}
.auth-brand-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.brand-logo-editor{display:flex;align-items:center;gap:14px;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}
.brand-logo-preview{width:92px;height:92px;flex:none;display:grid;place-items:center;overflow:hidden;border:1px dashed #94a3b8;border-radius:14px;background:linear-gradient(145deg,#f0fdf4,#dcfce7);color:#15803d;text-align:center;font-size:12px;font-weight:800}
.brand-logo-preview img{width:100%;height:100%;object-fit:contain;padding:7px}
.brand-logo-actions{min-width:0;display:flex;flex-direction:column;gap:7px}
.brand-logo-actions small{color:var(--muted,#64748b);line-height:1.45}
@media(max-width:520px){.brand-logo-editor{align-items:flex-start;flex-direction:column}.brand-logo-preview{width:80px;height:80px}}

/* ==========================================
   TINDA POS — PREMIUM LOGIN PORTAL ANIMATION
========================================== */
.auth{animation:portalReveal .8s ease both;background-size:cover;background-attachment:fixed}
@keyframes portalReveal{from{opacity:0}to{opacity:1}}
.auth:before{background:radial-gradient(circle at 15% 20%,rgba(25,198,74,.18),transparent 35%),radial-gradient(circle at 85% 75%,rgba(255,196,0,.13),transparent 35%),linear-gradient(120deg,rgba(255,255,255,.32),rgba(255,255,255,.12),rgba(255,255,255,.28));background-size:200% 200%;animation:portalLight 12s ease-in-out infinite alternate}
@keyframes portalLight{0%{background-position:0% 0%}100%{background-position:100% 100%}}
.auth-brand-mark{position:relative;overflow:hidden;isolation:isolate;width:clamp(84px,11vw,138px);height:clamp(84px,11vw,138px);padding:5px;border-radius:27%;background:linear-gradient(145deg,#36f66c,#008b43 55%,#003e29);border:2px solid rgba(255,255,255,.9);box-shadow:0 12px 30px rgba(0,75,44,.3),0 0 0 5px rgba(25,198,74,.08),inset 0 2px 5px rgba(255,255,255,.4);animation:logoFloat 4s ease-in-out infinite}
.auth-brand-mark img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;border-radius:22%;filter:drop-shadow(0 4px 5px rgba(0,0,0,.18))}
@keyframes logoFloat{0%,100%{transform:translateY(0) rotate(0deg);box-shadow:0 12px 30px rgba(0,75,44,.3)}50%{transform:translateY(-7px) rotate(1deg);box-shadow:0 20px 38px rgba(0,75,44,.35),0 0 20px rgba(25,198,74,.22)}}
.auth-brand{animation:brandReveal .9s .15s ease both}
@keyframes brandReveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.auth-intro{animation:brandReveal .8s .3s ease both}
.auth-card{animation:cardReveal .85s .2s cubic-bezier(.2,.8,.2,1) both;transition:box-shadow .3s ease,transform .3s ease}
@keyframes cardReveal{from{opacity:0;transform:translateY(35px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.auth-card:hover{box-shadow:0 30px 75px rgba(0,45,26,.32)}
.auth-card-ribbon{background-size:200% 200%;animation:ribbonGlow 5s ease infinite alternate}
@keyframes ribbonGlow{from{background-position:0% 50%}to{background-position:100% 50%}}
.auth-benefit{animation:benefitReveal .7s ease both}
.auth-benefit:nth-child(1){animation-delay:.3s}
.auth-benefit:nth-child(2){animation-delay:.45s}
.auth-benefit:nth-child(3){animation-delay:.6s}
@keyframes benefitReveal{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
.auth-btn{overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,filter .25s ease}
.auth-btn:before{content:"";position:absolute;top:-50%;left:-100%;width:45%;height:200%;transform:rotate(25deg);background:rgba(255,255,255,.22);transition:left .65s ease}
.auth-btn:hover:before{left:150%}
.auth-btn:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(0,96,46,.32)}
.auth-input{transition:border-color .25s ease,box-shadow .25s ease,background .25s ease}
.auth-bottom{animation:footerReveal .8s .4s ease both}
@keyframes footerReveal{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.auth-brand-mark{width:76px;height:76px}}
@media(max-width:520px){.auth-brand-mark{width:62px;height:62px;border-radius:18px}.auth-brand-mark img{border-radius:13px}.auth-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.auth,.auth:before,.auth-brand,.auth-brand-mark,.auth-intro,.auth-card,.auth-card-ribbon,.auth-benefit,.auth-bottom{animation:none!important}.auth-btn,.auth-input,.auth-card{transition:none!important}}

/* ---------- Footer - Powered by Stephen Jimenez ---------- */
.auth-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;font-size:13px;color:rgba(255,255,255,.85)}
.auth-footer-link{color:#fbbf24;font-weight:800;text-decoration:none;background:linear-gradient(180deg,#fde68a 0%,#fbbf24 45%,#f59e0b 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;position:relative;padding-bottom:2px;transition:transform .15s ease,filter .15s ease;cursor:pointer}
.auth-footer-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:99px;background:linear-gradient(90deg,#fde68a,#fbbf24,#f59e0b);box-shadow:0 0 8px rgba(251,191,36,.7)}
.auth-footer-link:hover{filter:brightness(1.15);transform:translateY(-1px);-webkit-text-fill-color:#fde68a}
.auth-footer-link:active{transform:translateY(0) scale(.98)}

/* Tinda POS unified teal + golden login and activation palette */
.auth{background:linear-gradient(135deg,#0f766e,#115e59);color:#0f172a}
.auth:before{background:linear-gradient(135deg,rgba(204,251,241,.12),rgba(15,118,110,.08));backdrop-filter:none}
.auth-brand-mark,.auth-icon{background:linear-gradient(145deg,#0f766e,#115e59);color:#fbbf24}
.auth-brand h1,.auth-brand p,.auth-intro,.auth-benefit{color:#0f172a}
.auth-benefit-icon{border-color:#0f766e;background:#ccfbf1;color:#0f766e;box-shadow:none}
.auth-card{border-color:#ccfbf1;background:#fff;box-shadow:0 24px 65px rgba(15,23,42,.22)}
.auth-card-ribbon{background:#0f766e;border-color:#fbbf24;box-shadow:none}
.auth-head h1,.auth-label{color:#0f172a}
.auth-label:before{background:#fbbf24}
.auth-input{border-color:#0f766e}
.auth-input:focus-visible{border-color:#0f766e;box-shadow:0 0 0 4px rgba(15,118,110,.16)}
.auth-btn{background:linear-gradient(180deg,#0f766e,#115e59);box-shadow:0 8px 18px rgba(15,118,110,.2)}
.auth-link{color:#0f766e}.auth-link:hover{color:#115e59}
.auth-bottom{background:#0f766e;border-top:3px solid #fbbf24}
.auth-foot,.auth-hint{color:#475569}

.auth-footer-link{color:#fbbf24;font-weight:850;text-decoration:none}.auth-footer-link:hover{color:#f59e0b}

/* ==========================================================================
   LOGIN + ACTIVATION BACKGROUND - FINAL RULE (keep this block LAST)
   Always auth-supermarket-bg.png. Steady: no animation, no scroll, fixed.
   Dark overlay keeps text readable while the image stays visible.
   Theme Settings / Dark Mode / Dashboard image can NOT change this.
   ========================================================================== */
html body .auth{
  background-color:#0b3d2e!important;
  background-image:url('auth-supermarket-bg.png')!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
  animation:none!important;
  transition:none!important;
}
html body .auth:before{
  content:"";
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(rgba(0,0,0,.10),rgba(0,0,0,.10))!important;
  background-size:auto!important;
  backdrop-filter:none!important;
  animation:none!important;
  transition:none!important;
}
@media(max-width:520px){html body .auth{background-position:42% center!important}}
