/* Staff credentials share the input geometry used by Accounting. */
.auth-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.auth-field > label {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 630 .875rem/1.35 var(--body);
}
.auth-control { position:relative; display:flex; align-items:center; }
.auth-icon { width:18px; height:18px; display:block; flex:none; }
.auth-control > .auth-icon {
  position:absolute;
  z-index:1;
  left:14px;
  color:#746e64;
  pointer-events:none;
}
body.tkd-ui .auth-control input {
  width:100%;
  min-width:0;
  min-height:48px;
  margin:0;
  padding:10px 13px 10px 42px;
  border:1px solid var(--field-line);
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  font:400 1rem/1.35 var(--body);
}
body.tkd-ui .auth-control input[name=password] { padding-right:47px; }
.auth-control:focus-within input { border-color:#9d7b36; }
body.tkd-ui .auth-control .auth-reveal {
  position:absolute;
  right:3px;
  display:grid;
  place-items:center;
  min-height:40px;
  width:40px;
  padding:0;
  border:0;
  border-radius:7px;
  color:#676157;
  background:transparent;
  box-shadow:none;
}
body.tkd-ui .auth-control .auth-reveal:hover { background:var(--soft); }
#public-bar, .kitchen:has(.k-login:not([hidden])) .k-toolbar {
  display:flex;
  align-items:center;
  width:min(100% - clamp(40px,9.6vw,152px),1360px);
  min-height:clamp(74px,10vh,106px);
  margin:0 auto;
  padding:0;
}
#public-bar .brand, .kitchen:has(.k-login:not([hidden])) .k-brand {
  gap:7px;
  font:430 clamp(22px,2.3vw,32px)/1 var(--display);
  letter-spacing:-.066em;
}
#public-bar .brand img, .kitchen:has(.k-login:not([hidden])) .k-brand img { width:1.1em; height:1.1em; }
#public-bar .brand b { font-weight:780; }
.kitchen:has(.k-login:not([hidden])) .k-header { border:0; background:transparent; }
.login#access, .kitchen .k-main:has(.k-login:not([hidden])) {
  width:min(100% - clamp(40px,9.6vw,152px),1360px);
  margin:0 auto 40px;
  padding:0;
}
#access .login-shell, #access.k-login {
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  min-height:clamp(500px,71vh,735px);
  border:1px solid #e1dcd2;
  background:#fff;
  border-radius:26px;
  padding:9px;
  box-shadow:var(--panel-shadow);
}
.login.login #login, #access .k-login-form {
  width:min(100%,calc(404px + clamp(40px,8vw,132px)));
  justify-self:center;
  align-self:center;
  min-width:0;
  padding:clamp(26px,4vw,66px);
  border:0;
  background:transparent;
}
#access .login-visual, #access .k-login-photo {
  display:block;
  overflow:hidden;
  isolation:isolate;
  position:relative;
  border-radius:18px;
  height:100%;
  min-height:0;
  background:#272118 url("/pos-assets/grill.webp") 62% center / cover;
}
#access .login-visual::before, #access .k-login-photo::before {
  position:absolute;
  z-index:-1;
  content:"";
  inset:0;
  background:linear-gradient(135deg,#19150f9c,transparent 80%);
}
.auth-art-title {
  display:block;
  margin:clamp(26px,4.3vw,66px);
  color:#fff9ee;
  font:550 clamp(3rem,5.3vw,5.7rem)/.97 var(--display);
  letter-spacing:-.064em;
}
.auth-art-title > span { color:#e4b653; }
#access .identity, #access .k-eyebrow { color:var(--muted); display:flex; gap:8px; align-items:center; }
#access .login-shell h1, #access.k-login h1 { margin:0; font:690 clamp(2.55rem,3.9vw,3.6rem)/1.03 var(--display); letter-spacing:-.055em; }
#access .k-eyebrow { margin-bottom:15px; }
#access .k-login-form > p { margin-top:10px; }
#access .login-shell p, .k-login-form > p { font-size:.94rem; line-height:1.55; }
#access .login-shell form > .auth-field:first-of-type,
#access .login-shell form > p + .auth-field { margin-top:6px; }
body.tkd-ui #access button[type=submit] {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:48px;
  padding:11px 17px;
  border:1px solid var(--dark);
  border-radius:9px;
  background:var(--dark);
  color:white;
  font:620 .94rem/1.4 var(--body);
}
#access button[type=submit] svg { width:19px; height:19px; }
body.tkd-ui #access button[type=submit]:hover { background:#38352e; }
@media(max-width:660px) {
  body:has(#access:not([hidden])) { background:#fff; }
  #public-bar, .kitchen:has(.k-login:not([hidden])) .k-toolbar { min-height:72px; }
  .login#access, .kitchen .k-main:has(.k-login:not([hidden])) { width:calc(100% - 40px); }
  #access .login-shell, #access.k-login {
    display:flex;
    flex-direction:column;
    gap:26px;
    margin:0;
    padding:0;
    min-height:0;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .login.login #login, #access .k-login-form { width:min(100%,460px); padding:0; }
  #access .login-visual, #access .k-login-photo {
    width:100%;
    height:clamp(92px,16vh,132px);
    order:-1;
    align-content:center;
    border-radius:13px;
    background-position:55% center;
  }
  .auth-art-title { margin:0 20px; font-size:clamp(1.8rem,7vw,2.5rem); }
  .auth-art-title br { display:none; }
  .auth-art-title br::after { content:" "; }
}
