/* ───────────────────────────── حاسبي · views */

/* ── auth: welcome / login / claim / staff / PIN */

.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-top: 18px;
}

.hero-mark {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 6px auto 4px;
}

.hero-mark::before {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(59, 130, 246, 0.12) 40%, transparent 68%);
  animation: breathe 5s ease-in-out infinite;
}

.hero-mark .mark {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-title {
  font: 700 54px/1.4 var(--font-display);
  padding-bottom: 0.06em;
  letter-spacing: 0;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
}

.app-tagline {
  max-width: 360px;
  color: var(--text-1);
  font-size: 16.5px;
  line-height: 1.6;
}

.company-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  font: 500 14px/1 var(--font-display);
  color: var(--text-1);
  background: rgba(var(--fg-rgb), 0.05);
  border: 1px solid var(--line);
}

.company-pill .ico {
  color: var(--violet-300);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px;
  text-align: start;
  border-radius: var(--r-lg);
  transition:
    transform 0.22s var(--ease-spring),
    border-color 0.2s,
    box-shadow 0.3s;
}

.choice:hover {
  border-color: var(--line-3);
}

.choice:active {
  transform: scale(0.98);
}

.choice .choice-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.9);
}

.choice.alt .choice-icon {
  background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #4f46e5);
  box-shadow: 0 10px 26px -10px rgba(37, 99, 235, 0.9);
}

.choice .grow {
  flex: 1;
  min-width: 0;
}

.choice .choice-title {
  display: block;
  font: 600 18px/1.3 var(--font-display);
}

.choice .choice-sub {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 2px;
}

.choice .chev {
  color: var(--text-3);
}

.auth-foot {
  margin-top: auto;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px;
}

.page-head h1 {
  font-size: 30px;
}

.page-head p {
  color: var(--text-2);
}

.page-head.centered,
.lead-center {
  text-align: center;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

/* Staff picker */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px 18px;
  border-radius: var(--r-lg);
  transition:
    transform 0.22s var(--ease-spring),
    border-color 0.2s;
}

.staff-card:active {
  transform: scale(0.96);
}

.staff-card .name {
  font: 600 17px/1.2 var(--font-display);
  text-align: center;
}

.staff-card .role {
  font-size: 13px;
  color: var(--text-2);
}

.staff-card.locked {
  opacity: 0.55;
}

/* PIN screen */

.pin-screen {
  align-items: center;
  text-align: center;
  gap: 22px;
}

.pin-screen .avatar {
  width: 92px;
  height: 92px;
  font-size: 32px;
}

.pin-screen .pin-msg {
  min-height: 22px;
  font-size: 15px;
  color: var(--text-2);
}

.pin-screen .pin-msg.bad {
  color: var(--bad-ink);
}

/* Device code shown to the owner */

.code-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  font: 700 44px/1 var(--font-display);
  letter-spacing: 0;
}

.code-display span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 64px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: 0 0 24px -8px rgba(139, 92, 246, 0.8);
}

.code-display span:nth-child(3) {
  margin-inline-end: 10px;
}

.qr-frame {
  width: 196px;
  height: 196px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.5),
    0 0 50px -10px rgba(139, 92, 246, 0.8);
}

.qr-frame svg {
  width: 100%;
  height: 100%;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
}

.ring {
  --p: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(var(--violet-400) calc(var(--p) * 360deg), rgba(var(--fg-rgb), 0.08) 0);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px);
  mask: radial-gradient(circle, transparent 7px, #000 8px);
}

/* ── placeholders for surfaces that land in later milestones */

.hello-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.hello-card h2 {
  font-size: 26px;
}

.pin-screen > .enter:has(.keypad),
.pin-screen > .enter:has(.pin-dots) {
  width: 100%;
}
