/* ================================================================
   AUTH - Login screens (Admin + Staff PIN)
   ================================================================ */

/* ---- Admin Login Screen ---- */
#auth-login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
}

.auth-card {
  width: 340px;
  max-width: 90vw;
  padding: 40px 32px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
}

.auth-logo {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: #e6edf3;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: #58a6ff;
}

.auth-error {
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: 6px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #238636;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-submit:hover {
  background: #2ea043;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---- Staff PIN Screen ---- */
#auth-pin-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
}

.pin-card {
  width: 320px;
  max-width: 90vw;
  text-align: center;
}

.pin-title {
  font-size: 24px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 4px;
}

.pin-subtitle {
  font-size: 14px;
  color: #8b949e;
  margin-bottom: 32px;
}

.pin-display {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #30363d;
  background: transparent;
  transition: all 0.15s;
}

.pin-dot.filled {
  background: #58a6ff;
  border-color: #58a6ff;
}

.pin-error {
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: 6px;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.pin-key {
  width: 80px;
  height: 80px;
  font-size: 28px;
  font-weight: 500;
  color: #e6edf3;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pin-key:active {
  background: #30363d;
}

.pin-key:disabled {
  opacity: 0.4;
}

.pin-key-empty {
  visibility: hidden;
  border: none;
  background: none;
}

.pin-key-del {
  font-size: 22px;
  color: #8b949e;
}

/* ---- Logout Button ---- */
.logout-btn {
  padding: 4px 10px;
  font-size: 12px;
  color: #8b949e;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s;
}

.logout-btn:hover {
  color: #f85149;
  border-color: #f85149;
}
