:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #09090b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.25), transparent 35rem),
    #09090b;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.shell {
  width: min(30rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

.card {
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 1px solid #27272a;
  border-radius: 0.8rem;
  background: rgba(24, 24, 27, 0.9);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

form {
  display: grid;
  gap: 0.45rem;
}

label {
  color: #d4d4d8;
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  margin-bottom: 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #3f3f46;
  border-radius: 0.65rem;
  outline: none;
  background: #09090b;
  color: #f8fafc;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.credentials button,
.punch {
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: #2563eb;
  color: white;
  font-weight: 800;
}

.credentials button {
  width: 100%;
  margin-top: 0.3rem;
}

.hint {
  margin: 0.75rem 0 0;
  color: #71717a;
  font-size: 0.7rem;
  line-height: 1.4;
}

.attendance {
  display: grid;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #3f3f46;
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.active {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.link-button {
  padding: 0;
  background: transparent;
  color: #60a5fa;
}

.logout {
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: #27272a;
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 700;
}

.muted {
  margin-bottom: 0;
  color: #a1a1aa;
  font-size: 0.85rem;
}

.punch {
  width: 100%;
  min-height: 2.75rem;
  font-size: 0.95rem;
}

.message {
  min-height: 1.2rem;
  margin: 0;
  color: #a1a1aa;
  font-size: 0.8rem;
  text-align: center;
}

.message.error {
  color: #f87171;
}

.message.success {
  color: #4ade80;
}

@media (max-width: 30rem) {
  .shell {
    padding: 0.75rem 0;
  }
}
