/* AMELIAPOS_LOGIN_CORE_R16_4R2
   Login-only visual authority. No Salon/Ticket/KDS/Delivery/Reports rules. */

:root{
  --lp-bg:#070707;
  --lp-bg2:#0d0e0f;
  --lp-panel:rgba(18,19,20,.92);
  --lp-panel2:rgba(25,26,27,.90);
  --lp-line:rgba(255,255,255,.11);
  --lp-soft:rgba(255,255,255,.055);
  --lp-text:#f4f5f6;
  --lp-muted:#aeb2b5;
  --lp-orange:#ff7900;
  --lp-orange2:#d65f00;
  --lp-red:#a83b33;
  --lp-red2:#7b2721;
  --lp-green:#419b38;
  --lp-green2:#2f782a;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#070707;color:var(--lp-text);font-family:Inter,Segoe UI,Roboto,Arial,sans-serif}
button,input{font:inherit}
button{cursor:pointer}
.hidden,[hidden]{display:none!important}

html.amelia-login-only-r165{
  background:#070707;
}
html.amelia-login-only-r165 body{
  min-height:100vh;
  overflow:hidden;
}
html.amelia-login-only-r165 #app,
html.amelia-login-only-r165 .overlay,
html.amelia-login-only-r165 .app-view:not(#login){
  display:none!important;
}

/* ------------------------------- LOGIN ------------------------------- */

#login.pos-login-screen{
  position:fixed;
  inset:0;
  z-index:10;
  min-height:100dvh;
  overflow:auto;
  color:var(--lp-text);
  background:
    radial-gradient(ellipse at 50% -12%,rgba(255,121,0,.16),transparent 38%),
    radial-gradient(circle at 11% 54%,rgba(255,121,0,.055),transparent 30%),
    linear-gradient(145deg,#050505 0%,#0a0a0b 48%,#111214 100%);
}

#login.pos-login-screen::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:56px 56px;
  opacity:.34;
  mask-image:radial-gradient(ellipse at center,#000 0%,rgba(0,0,0,.72) 48%,transparent 94%);
}

#login .amelia-device-gate.hidden{display:none!important}

#loginForm.pos-login-shell{
  position:relative;
  z-index:1;
  width:100%;
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(260px,330px) minmax(430px,1fr) minmax(300px,360px);
  grid-template-rows:auto minmax(0,1fr) auto;
  grid-template-areas:
    "head head head"
    "users identity keypad"
    "foot foot foot";
  background:transparent;
}

/* Header */
#login .pos-login-header{
  grid-area:head;
  min-height:92px;
  padding:10px clamp(22px,3vw,58px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  border-bottom:1px solid rgba(255,121,0,.16);
  background:rgba(5,5,5,.87);
}

#login .pos-login-access,
#login .pos-login-context,
#login .pos-login-brand{
  display:flex;
  align-items:center;
  min-width:0;
}

#login .pos-login-access{gap:13px}
#login .pos-login-access-icon{color:var(--lp-orange);font-size:26px;transform:rotate(-3deg)}
#login .pos-login-access div{display:grid;gap:2px}
#login .pos-login-access strong{
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:14px;
  color:#fff;
}
#login .pos-login-access small{font-size:12px;color:var(--lp-muted)}

#login .pos-login-brand{
  justify-content:center;
  flex-direction:column;
  gap:2px;
  align-self:center;
}
#login .amelia-logo-shell{
  width:clamp(220px,16vw,300px);
  height:68px;
  display:grid;
  place-items:center;
  overflow:visible;
}
#login .pos-login-brand img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
#login .pos-login-brand>small{
  margin-top:-5px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#d1d1d1;
}

#login .pos-login-context{
  justify-content:flex-end;
  gap:14px;
  font-size:12px;
}
#login .pos-login-scene,
#login .pos-login-company,
#login .pos-login-station{
  display:grid;
  gap:2px;
}
#login .pos-login-scene{
  grid-auto-flow:column;
  align-items:center;
  gap:7px;
  font-weight:700;
}
#login .pos-login-scene-icon{color:var(--lp-orange)}
#login .pos-login-company{
  padding-left:14px;
  border-left:1px solid var(--lp-line);
}
#login .pos-login-company>span,
#login .pos-login-station>span{
  color:var(--lp-muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
#login .pos-login-company button{
  border:1px solid rgba(255,121,0,.58);
  border-radius:8px;
  padding:7px 10px;
  background:#151515;
  color:#ff9b43;
  font-size:11px;
  font-weight:800;
}
#login .pos-login-station b{font-size:12px;color:#fff}

/* Three operating zones */
#login .pos-login-users,
#login .pos-login-identity,
#login .pos-login-keypad{
  position:relative;
  min-height:0;
  background:linear-gradient(180deg,rgba(21,22,23,.91),rgba(10,10,11,.93));
  border-top:1px solid var(--lp-soft);
  border-bottom:1px solid var(--lp-soft);
}

#login .pos-login-users{
  grid-area:users;
  padding:34px 22px 24px clamp(22px,4vw,72px);
  border-right:1px solid var(--lp-line);
}
#login .pos-login-identity{
  grid-area:identity;
  padding:28px clamp(34px,5vw,90px) 82px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  border-right:1px solid var(--lp-line);
  background:
    radial-gradient(circle at 50% 25%,rgba(255,121,0,.07),transparent 26%),
    linear-gradient(180deg,rgba(18,19,20,.90),rgba(9,9,10,.93));
}
#login .pos-login-keypad{
  grid-area:keypad;
  padding:34px clamp(22px,3vw,48px) 26px 24px;
}

#login .pos-login-section-title{
  display:grid;
  gap:4px;
  margin-bottom:22px;
}
#login .pos-login-section-title>span{
  color:#fff;
  font-size:18px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}
#login .pos-login-section-title>small{
  color:var(--lp-muted);
  font-size:12px;
}

/* Users */
#login .pos-login-user-list{
  display:grid;
  gap:12px;
}
#login .pos-login-user{
  width:100%;
  min-height:84px;
  display:grid;
  grid-template-columns:58px 1fr auto;
  align-items:center;
  gap:14px;
  padding:11px 15px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  text-align:left;
  color:#fff;
  background:linear-gradient(180deg,#242526,#171819);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
#login .pos-login-user:hover{
  border-color:rgba(255,121,0,.48);
  background:linear-gradient(180deg,#2c2927,#1d1b1a);
}
#login .pos-login-user.active{
  border-color:var(--lp-orange);
  background:linear-gradient(135deg,rgba(255,121,0,.17),#252220 45%,#171718);
  box-shadow:inset 3px 0 0 var(--lp-orange),0 10px 26px rgba(0,0,0,.20);
}
#login .pos-login-user::after{
  content:"";
  width:20px;
  height:20px;
  border-radius:50%;
  opacity:0;
  background:var(--lp-orange);
  box-shadow:0 0 0 4px rgba(255,121,0,.08);
}
#login .pos-login-user.active::after{
  opacity:1;
  background:
    radial-gradient(circle at 50% 48%,#fff 0 2px,transparent 3px),
    var(--lp-orange);
}
#login .pos-login-user-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
#login .pos-login-user-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  color:#fff;
}
#login .pos-login-user-copy small{
  font-size:11px;
  font-weight:700;
  color:#c8c8c8;
}
#login .pos-login-user.active .pos-login-user-copy small{color:#ff9b43}

/* Single avatar authority */
#login .pos-login-user-avatar,
#login .pos-login-selected-avatar{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  overflow:hidden;
  padding:0;
  border:1.5px solid rgba(255,121,0,.80);
  border-radius:50%;
  background:linear-gradient(145deg,#2b2c2e,#131415);
}
#login .pos-login-user-avatar{width:56px;height:56px}
#login .pos-login-selected-avatar{
  width:102px;
  height:102px;
  margin-top:2px;
  border-width:2px;
  box-shadow:0 0 0 5px rgba(255,121,0,.07),0 0 34px rgba(255,121,0,.13);
}
#login .pos-login-user-avatar img,
#login .pos-login-selected-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
#login .login-avatar-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size:0;
}
#login .login-avatar-fallback::before{
  content:"";
  width:48%;
  height:48%;
  background:#efefef;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21c.5-4.3 3.7-6.8 8-6.8s7.5 2.5 8 6.8H4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21c.5-4.3 3.7-6.8 8-6.8s7.5 2.5 8 6.8H4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Identity / PIN */
#login .pos-login-selected-copy{
  margin-top:18px;
  display:grid;
  justify-items:center;
  gap:5px;
  text-align:center;
}
#login .pos-login-selected-copy>span{
  color:var(--lp-orange);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#login .pos-login-selected-copy h1{
  margin:0;
  font-size:clamp(27px,2.2vw,38px);
  line-height:1.08;
  color:#fff;
}
#login .pos-login-selected-copy p{
  margin:0;
  color:#c5c5c5;
  font-size:13px;
}

#login .pos-login-pin-label{
  width:100%;
  margin-top:42px;
  margin-bottom:8px;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
#login .pos-login-pin-wrap{
  width:100%;
  height:62px;
  display:grid;
  grid-template-columns:1fr 64px;
  border:1.5px solid var(--lp-orange);
  border-radius:12px;
  overflow:hidden;
  background:rgba(5,5,5,.88);
  box-shadow:0 0 0 1px rgba(255,121,0,.035);
}
#login .pos-login-pin-wrap input{
  width:100%;
  min-width:0;
  padding:0 20px;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:24px;
  letter-spacing:.18em;
}
#login .pos-login-pin-wrap>span{
  display:grid;
  place-items:center;
  border-left:1px solid rgba(255,255,255,.08);
  color:#b8b8b8;
  font-size:11px;
  font-weight:800;
}
#login .pos-login-remember{
  width:100%;
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#ececec;
  font-size:12px;
  font-weight:650;
}
#login .pos-login-remember input{
  width:18px;
  height:18px;
  accent-color:var(--lp-orange);
}
#login .pos-login-security{
  width:100%;
  margin:9px 0 0;
  color:#979b9e;
  font-size:11px;
}
#login .pos-login-feature-strip{
  position:absolute;
  left:clamp(34px,5vw,90px);
  right:clamp(34px,5vw,90px);
  bottom:26px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:14px 16px;
  border:1px solid var(--lp-line);
  border-radius:12px;
  background:rgba(8,8,8,.58);
}
#login .pos-login-feature-strip>span{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
#login .pos-login-feature-strip b{
  color:var(--lp-orange);
  font-size:22px;
  font-weight:500;
}
#login .pos-login-feature-strip i{
  min-width:0;
  display:grid;
  gap:2px;
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
#login .pos-login-feature-strip small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#919598;
  font-size:9px;
  font-weight:500;
}

/* Keypad */
#login .pos-login-key-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
#login .pos-login-key-grid button{
  min-height:72px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  color:#fff;
  font-size:27px;
  font-weight:800;
  background:linear-gradient(180deg,#313234,#1d1e20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 6px 16px rgba(0,0,0,.12);
}
#login .pos-login-key-grid button:hover{
  border-color:rgba(255,121,0,.36);
  background:linear-gradient(180deg,#3b3c3e,#262729);
}
#login .pos-login-key-grid button:active{transform:translateY(1px)}
#login .pos-login-key-grid .clear,
#login .pos-login-key-grid .backspace{
  background:linear-gradient(180deg,var(--lp-red),var(--lp-red2));
  color:#fff0ee;
}
#login .pos-login-submit{
  width:100%;
  min-height:58px;
  margin-top:12px;
  border:1px solid rgba(95,193,84,.25);
  border-radius:11px;
  color:#fff;
  font-size:17px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
  background:linear-gradient(180deg,var(--lp-green),var(--lp-green2));
  box-shadow:0 10px 24px rgba(47,120,42,.18);
}
#login .pos-login-submit:disabled{
  cursor:not-allowed;
  filter:saturate(.5);
  opacity:.48;
}
#login .pos-login-status{
  min-height:20px;
  margin-top:10px;
  text-align:center;
  color:#a9adaf;
  font-size:10px;
}
#login .pos-login-status.error{color:#ff8e86}

/* Footer */
#login .pos-login-footer{
  grid-area:foot;
  min-height:58px;
  padding:8px clamp(22px,3vw,58px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  border-top:1px solid rgba(255,255,255,.07);
  background:rgba(4,4,4,.94);
  color:#989c9f;
  font-size:10px;
}
#login .pos-login-online{
  justify-self:start;
  display:flex;
  align-items:center;
  gap:9px;
}
#login .pos-login-online>i{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#36b946;
  box-shadow:0 0 0 6px rgba(54,185,70,.10);
}
#login .pos-login-online>span{display:grid;gap:1px}
#login .pos-login-online b{
  color:#fff;
  font-size:10px;
  text-transform:uppercase;
}
#login .pos-login-online small{font-size:9px;color:#85898c}
#login .pos-login-copy{justify-self:center}
#login .pos-login-copy b{color:var(--lp-orange)}
#login .pos-login-time{
  justify-self:end;
  color:#e0e0e0;
  font-weight:700;
}

/* ------------------------- POST LOGIN BOOT --------------------------- */

#ameliaPrebootR164R2{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 40%,rgba(255,121,0,.08),transparent 30%),
    #070707;
  color:#fff;
}
#ameliaPrebootR164R2.hidden{display:none!important}
#ameliaPrebootR164R2 .boot-card{
  width:min(460px,90vw);
  display:grid;
  justify-items:center;
  text-align:center;
}
#ameliaPrebootR164R2 img{
  width:min(300px,70vw);
  height:auto;
  object-fit:contain;
}
#ameliaPrebootR164R2 h2{
  margin:24px 0 6px;
  font-size:21px;
  letter-spacing:.01em;
}
#ameliaPrebootR164R2 p{
  min-height:20px;
  margin:0;
  color:#aaaeb1;
  font-size:12px;
}
#ameliaPrebootR164R2 .boot-track{
  width:100%;
  height:4px;
  margin-top:22px;
  overflow:hidden;
  border-radius:999px;
  background:#252628;
}
#ameliaPrebootR164R2 .boot-bar{
  width:5%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#d95f00,#ff8b22);
  transition:width .18s ease;
}
#ameliaPrebootR164R2 .boot-foot{
  margin-top:12px;
  color:#6f7376;
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Minimal emergency loading state for company onboarding fallback. */
#login .amelia-device-gate:not(.hidden) + #loginForm,
#login .amelia-device-gate:not(.hidden) ~ #loginForm{
  display:none!important;
}

/* ------------------------------ MOBILE ------------------------------- */





@media(prefers-reduced-motion:reduce){
  #ameliaPrebootR164R2 .boot-bar{transition:none}
  #login .pos-login-user,
  #login .pos-login-key-grid button{transition:none}
}

/* RESPONSIVE_AUTHORITY_MOVED_TO_R16_4R5 */
