/*
 * Retailer (rt) login / PIN / set-PIN screens ONLY -- ds/sd/admin keep the original shared
 * /assets/shared/css/auth.css (their Views/login-*.php still use its .au-wrap/.au-side/
 * .au-form-side classes; do not merge this back into that shared file). Concept: one real-image
 * carousel fills the entire page as a 100%-width/height background band; the login card floats
 * separately on top of it -- on the right, detached on all sides (its own shadow, gap of
 * background visible around it), never sharing an edge with the background/box. Color tokens
 * come from /assets/css/variables.css.
 */
*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  min-height:100vh;min-height:100dvh;font-family:'Nunito',sans-serif;overflow-x:hidden;
  background:linear-gradient(160deg,var(--pd) 0%,var(--p) 55%,var(--g) 100%);
}

.au-page{position:relative;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;width:100%;}

/* BACKGROUND / HORIZONTAL BOX — the real-image carousel, 100% width and height, fixed behind everything */
.au-bgcarousel{position:fixed;inset:0;z-index:0;overflow:hidden;background:linear-gradient(160deg,var(--pd) 0%,var(--p) 55%,var(--g) 100%);}
.au-grid{
  position:absolute;inset:0;opacity:.07;
  background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);
  background-size:36px 36px;pointer-events:none;
}
.au-carousel-track{position:relative;width:100%;height:100%;}
.au-carousel-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity 1s ease;}
.au-carousel-slide.active{opacity:1;visibility:visible;}
.au-carousel-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.au-carousel-slide-empty{
  background:
    radial-gradient(circle at 15% 20%,rgba(255,255,255,.12),transparent 40%),
    radial-gradient(circle at 85% 75%,rgba(255,255,255,.10),transparent 45%),
    linear-gradient(160deg,var(--pd) 0%,var(--p) 55%,var(--g) 100%);
}
.au-carousel-overlay{position:absolute;inset:0;background:linear-gradient(100deg,rgba(9,11,58,.68) 0%,rgba(9,11,58,.4) 45%,rgba(9,11,58,.1) 68%,rgba(9,11,58,.3) 100%);}
.au-carousel-dots{position:absolute;left:44px;bottom:34px;display:flex;gap:8px;z-index:2;}
.au-carousel-dots button{width:8px;height:8px;border-radius:50%;border:none;background:rgba(255,255,255,.4);cursor:pointer;padding:0;transition:background .2s ease,width .2s ease;}
.au-carousel-dots button.active{background:#fff;width:22px;border-radius:4px;}

/* TOP — centered brand, overlaid on the photo. position:relative+z-index puts it (and the other
   direct .au-page sections below) above the fixed background -- positioned elements otherwise
   paint after static ones regardless of source order. */
.au-topbrand{position:relative;z-index:2;order:1;display:flex;align-items:center;justify-content:center;gap:12px;padding:30px 20px 10px;}

/* Desktop: social icons sit at the bottom, right above the copyright line (unchanged from
   before) -- mobile moves them up to right below the logo instead (see media query below). */
.au-social{position:relative;z-index:2;order:3;display:flex;justify-content:center;gap:12px;padding:0 20px 18px;}
.au-topbrand-ico{
  width:42px;height:42px;border-radius:12px;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,var(--p),var(--g)) border-box;
  border:2px solid transparent;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.au-topbrand-name{font-size:19px;font-weight:900;color:#fff;letter-spacing:.2px;text-shadow:0 2px 10px rgba(0,0,0,.3);}

/* HERO ROW — tagline on the left, floating login card detached on the right */
.au-hero-row{position:relative;z-index:2;order:2;flex:1;display:flex;align-items:center;justify-content:flex-end;gap:32px;padding:24px 5%;max-width:1500px;margin:0 auto;width:100%;}
.au-hero-text{flex:1;animation:auSlideUp .7s cubic-bezier(.2,.8,.2,1);}
@keyframes auSlideUp{from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);}}
.au-hero-text h1{font-size:34px;font-weight:900;line-height:1.3;margin:0 0 14px;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.35);}
.au-hero-text h1 span{color:#ffe082;}
.au-hero-text p.au-lead{font-size:15px;line-height:1.7;color:rgba(255,255,255,.9);margin:0;max-width:420px;font-weight:600;text-shadow:0 2px 10px rgba(0,0,0,.3);}

/* FLOATING CARD — detached: margin on every side so the background shows all the way around it */
.au-hero-form{flex:0 0 400px;display:flex;justify-content:center;padding:28px 0;}
.au-form-box{
  width:100%;max-width:380px;background:#fff;border-radius:24px;padding:38px 34px;
  box-shadow:0 40px 80px -20px rgba(9,11,58,.6),0 0 0 1px rgba(255,255,255,.1);
  animation:auSlideUp .7s .1s cubic-bezier(.2,.8,.2,1) backwards;
}

.au-tag{display:block;text-align:center;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--pm);font-weight:800;margin-bottom:10px;}
.au-form-box h2{font-size:23px;font-weight:900;color:var(--text);margin:0 0 6px;text-align:center;}
.au-form-box p.sub{font-size:13.5px;color:var(--muted);font-weight:600;margin:0 0 22px;text-align:center;}

.au-alert{padding:11px 14px;border-radius:10px;font-size:13px;margin-bottom:18px;display:flex;gap:8px;align-items:flex-start;font-weight:600;}
.au-alert.danger{background:var(--red-soft);color:var(--red);}
.au-alert.warning{background:var(--amber-soft);color:var(--amber);}
.au-alert.success{background:var(--gl);color:var(--gd);}

.au-chip{
  display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 14px;border-radius:999px;
  background:var(--bg);border:1px solid var(--border);font-size:13.5px;color:var(--text);font-weight:700;margin:0 auto 22px;width:fit-content;
}
.au-chip .av{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--p),var(--g));color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;}

.au-field{margin-bottom:18px;}
.au-field label{display:block;font-size:12.5px;font-weight:800;color:var(--text);margin-bottom:7px;}
.au-inputwrap{position:relative;}
.au-inputwrap .pre{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;}
.au-input{
  width:100%;padding:13px 14px 13px 42px;border-radius:11px;border:1.5px solid var(--border);
  font-size:16px;font-family:'Nunito',sans-serif;font-weight:700;color:var(--text);background:#f7fafd;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.au-input:focus{outline:none;border-color:var(--p);background:#fff;box-shadow:0 0 0 4px var(--pl);}
.au-toggle-eye{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--muted);font-size:16px;cursor:pointer;padding:4px;}
.au-toggle-eye:hover{color:var(--p);}

.au-pin-input{
  width:100%;padding:16px;border-radius:11px;border:1.5px solid var(--border);
  font-size:24px;letter-spacing:10px;text-align:center;font-weight:900;color:var(--text);
  background:#f7fafd;font-family:'Nunito',sans-serif;
}
.au-pin-input:focus{outline:none;border-color:var(--p);background:#fff;box-shadow:0 0 0 4px var(--pl);}

.au-btn{
  width:100%;padding:13px;border:none;border-radius:11px;font-size:14.5px;font-weight:900;
  color:#fff;background:linear-gradient(135deg,var(--p),var(--pd));
  display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
  box-shadow:0 4px 14px rgba(17,21,105,.3);font-family:'Nunito',sans-serif;
}
.au-btn:hover{opacity:.94;}
.au-btn.loading{opacity:.7;pointer-events:none;}

.au-back{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12.5px;color:var(--muted);text-decoration:none;font-weight:700;margin-top:18px;}
.au-back:hover{color:var(--p);}
.au-forgot{display:block;text-align:center;font-size:12.5px;color:var(--pm);text-decoration:none;font-weight:800;margin-top:16px;}
.au-forgot:hover{color:var(--p);text-decoration:underline;}

/* BOTTOM — icon row, overlaid on the photo */
.au-bottom{position:relative;z-index:2;order:4;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:100%;padding:20px 20px 28px;}
.au-social a{
  width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;color:#fff;transition:.2s ease;
}
.au-social a:hover{background:#fff;color:var(--p);transform:translateY(-2px);}
.au-bottom-copy{font-size:11.5px;color:rgba(255,255,255,.8);font-weight:600;text-align:center;text-shadow:0 2px 8px rgba(0,0,0,.3);}
.au-bottom-copy a{color:#fff;text-decoration:none;font-weight:700;}
.au-bottom-copy a:hover{text-decoration:underline;}

@media (max-width:900px){
  .au-hero-row{flex-direction:column;padding:20px 24px;gap:0;justify-content:center;}
  .au-hero-text{text-align:center;}
  .au-hero-text p.au-lead{margin:0 auto;}
  .au-hero-text h1{font-size:26px;}
  .au-hero-form{flex:0 0 auto;width:100%;padding:20px 0;}
  .au-carousel-dots{left:50%;transform:translateX(-50%);bottom:14px;}

  /* Full-viewport object-fit:cover crops a wide banner image hard on a tall narrow screen --
     bound the carousel to a banner instead and show the whole image (contain) rather than
     cropping it. Moved into normal flow (order) below the login card instead of the fixed
     full-page background it is on desktop, so it no longer sits behind the logo/card. */
  .au-bgcarousel{position:relative;z-index:2;height:230px;order:4;}
  .au-carousel-slide img{object-fit:contain;}
  .au-carousel-overlay{display:none;}

  /* Social icons: desktop keeps them at the bottom (order:3 there) -- mobile only moves them
     up to right below the logo. */
  .au-social{order:2;}
  .au-hero-row{order:3;}
  .au-bottom{order:5;}
}
