body.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 640px); background: var(--ink); }
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.82) 55%, rgba(120,14,24,.85) 100%); }
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.brand-name { font-size: 36px; line-height: 1; }
.brand-sub { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .75; margin-top: 6px; }
.eyebrow { display: inline-block; padding: 8px 14px; border-radius: 99px; background: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; margin: 22px 0 16px; }
.hero-copy p { font-size: 19px; max-width: 520px; opacity: .85; line-height: 1.5; margin: 0; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.clock span { display: block; font-size: 56px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.clock small { font-size: 16px; opacity: .8; }
.branches-mini { display: grid; gap: 10px; }
.branches-mini div { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .9; }
.branches-mini svg { width: 20px; height: 20px; color: #ff6b77; }
.branches-mini b { margin-right: 8px; }

.panel { background: var(--cream); display: flex; flex-direction: column; min-height: 100vh; }
.panel-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }
.panel h2 { font-size: 42px; margin: 0; }
.hint { color: var(--muted); font-size: 17px; margin: 8px 0 28px; }
.people { display: grid; gap: 14px; }
.person {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; text-align: left;
  padding: 18px 20px; border-radius: 20px; background: #fff; border: 2px solid transparent; box-shadow: var(--shadow);
  transition: transform .12s, border-color .15s, box-shadow .15s;
}
.person:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(217,43,58,.15); }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.avatar svg { width: 32px; height: 32px; }
.is-admin .avatar, .avatar.admin { background: var(--ink); color: #fff; }
.who { display: grid; gap: 3px; }
.role { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.is-admin .role { color: var(--ink); }
.name { font-size: 22px; font-weight: 800; }
.where { font-size: 14px; color: var(--muted); }
.demo { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--cream); border: 1px dashed #d8cfc4; font-size: 14px; }
.demo small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

#step-pin { max-width: 440px; width: 100%; margin: 0 auto; display: grid; gap: 18px; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 0; }
.back svg { width: 20px; height: 20px; }
.picked { display: flex; align-items: center; gap: 16px; }
.picked-name { font-size: 26px; font-weight: 800; }
.picked-sub { color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 16px; padding: 10px 0; }
.dots i { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #c9c0b5; transition: background .1s, border-color .1s; }
.dots i.on { background: var(--red); border-color: var(--red); }
.error { background: #fde8ea; color: var(--red-dark); padding: 14px 16px; border-radius: 12px; font-weight: 700; text-align: center; }
.demo-line { text-align: center; color: var(--muted); font-size: 15px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pad button { height: 76px; border-radius: 18px; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 30px; font-weight: 700; transition: background .1s, transform .06s; }
.pad button:active { transform: scale(.96); background: #f0ebe4; }
.pad button.soft { font-size: 17px; color: var(--muted); }
.pad button svg { width: 30px; height: 30px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 18px; }

@media (max-width: 1000px) {
  body.login { grid-template-columns: 1fr; }
  .hero { min-height: 300px; }
  .hero-copy h1 { font-size: 36px; }
  .clock span { font-size: 40px; }
  .panel-inner { padding: 28px 18px; }
  .person { grid-template-columns: 52px 1fr; }
  .avatar { width: 52px; height: 52px; }
  .demo { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: start; }
}

/* branch tabs + role tiles */
.btabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; background: #ebe4db; padding: 5px; border-radius: 16px; margin: 18px 0 14px; }
.btabs button { border: 0; background: transparent; border-radius: 12px; padding: 10px 8px; font-weight: 800; font-size: 15px; color: var(--muted); line-height: 1.2; }
.btabs button small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.btabs button.on { background: #fff; color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.people.grid2 { grid-template-columns: 1fr 1fr; }
.grid2 .person { grid-template-columns: 52px 1fr; padding: 14px 16px; gap: 12px; }
.grid2 .avatar { width: 52px; height: 52px; border-radius: 15px; }
.grid2 .avatar svg { width: 28px; height: 28px; }
.grid2 .name { font-size: 17px; }
.grid2 .demo { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: start; padding: 7px 12px; }
.role-kitchen .avatar { background: #fff1e0; color: #c86a00; } .role-kitchen .role { color: #c86a00; }
.role-waiter .avatar { background: #e6f0ff; color: var(--blue); } .role-waiter .role { color: var(--blue); }
.role-delivery .avatar { background: #e9f7ef; color: var(--green); } .role-delivery .role { color: var(--green); }
@media (max-width: 1000px) { .people.grid2 { grid-template-columns: 1fr; } }
