* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background: #0a1218;
  color: #e8f4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #000;
  border: 2px solid #2db8ff;
  box-shadow: 0 0 24px rgba(45, 184, 255, 0.2);
  padding: 24px 22px;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2db8ff;
  letter-spacing: 0.04em;
}

.sub {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #9eb8cc;
  line-height: 1.4;
}

.status {
  margin-top: 20px;
  padding: 14px;
  background: rgba(0, 30, 50, 0.5);
  border: 1px solid rgba(45, 184, 255, 0.35);
}

.status-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9eb8cc;
}

.status-value {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

.status-remaining {
  margin-top: 4px;
  font-size: 1rem;
  color: #2db8ff;
  font-variant-numeric: tabular-nums;
}

.actions {
  margin-top: 20px;
}

.btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 2px solid #2db8ff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

.btn.primary {
  background: #2db8ff;
  color: #001018;
}

.btn.primary:hover {
  background: #5cc8ff;
}

.btn.secondary {
  margin-top: 12px;
  background: transparent;
  color: #2db8ff;
}

.btn.secondary:hover {
  background: rgba(45, 184, 255, 0.12);
}

.btn.ghost {
  background: transparent;
  color: #9eb8cc;
  border-color: #4a6070;
  font-size: 0.9rem;
  padding: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #7a94a8;
  line-height: 1.35;
}

.divider {
  margin: 22px 0 14px;
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6a8498;
}

.divider::before,
.divider::after {
  content: " — ";
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9eb8cc;
}

input[type="date"],
input[type="time"],
input[type="password"] {
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #0a1820;
  border: 1px solid #3a6078;
  color: #fff;
  border-radius: 0;
}

.pin-row {
  margin-top: 18px;
}

.msg {
  margin-top: 14px;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.msg.ok {
  background: rgba(45, 184, 255, 0.15);
  color: #2db8ff;
}

.msg.err {
  background: rgba(255, 80, 80, 0.12);
  color: #ff8a8a;
}

footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.link {
  color: #2db8ff;
  font-size: 0.9rem;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}
