/* ── Pass QR: password entry screen ─────────────────────────────────────── */

.pass-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 24px;
  background: #f5f7fa;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
}

.pass-lock-icon {
  font-size: 56px;
  color: #5a67d8;
  margin-bottom: 16px;
}

.pass-lock-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.pass-lock-subtitle {
  font-size: 14px;
  color: #718096;
  text-align: center;
  max-width: 340px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.pass-password-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pass-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: #fff;
}

.pass-input:focus {
  border-color: #5a67d8;
}

.pass-submit-btn {
  width: 100%;
  padding: 14px;
  background: #5a67d8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.pass-submit-btn:hover:not(:disabled) {
  background: #4c51bf;
}

.pass-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pass-error {
  margin-top: 12px;
  color: #e53e3e;
  font-size: 14px;
  text-align: center;
}

/* ── Pass QR: result screen (valid / invalid) ───────────────────────────── */

.pass-result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 24px 32px;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
}

.pass-valid {
  background: linear-gradient(160deg, #f0fff4 0%, #fff 60%);
}

.pass-invalid {
  background: linear-gradient(160deg, #fff5f5 0%, #fff 60%);
}

.pass-pending {
  background: #f5f7fa;
}

.pass-status-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.pass-valid .pass-status-icon {
  color: #38a169;
}

.pass-invalid .pass-status-icon {
  color: #e53e3e;
}

.pass-status-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pass-valid .pass-status-title {
  color: #276749;
}

.pass-invalid .pass-status-title {
  color: #c53030;
}

.pass-status-subtitle {
  font-size: 14px;
  color: #718096;
  text-align: center;
  max-width: 340px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.pass-already-note {
  font-size: 12px;
  color: #a0aec0;
  margin-bottom: 20px;
}

.pass-details-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 20px 24px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 24px;
}

.pass-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.pass-detail-row:last-child {
  border-bottom: none;
}

.pass-detail-label {
  font-size: 12px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pass-detail-label i {
  margin-right: 4px;
}

.pass-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  text-align: right;
}

.pass-footer-note {
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
}

/* ── Manual check-in button ─────────────────────────────────────────────── */

.pass-checkin-action {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pass-checkin-btn {
  width: 100%;
  padding: 16px;
  background: #38a169;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(56, 161, 105, 0.35);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.pass-checkin-btn:hover:not(:disabled) {
  background: #2f855a;
  box-shadow: 0 6px 18px rgba(56, 161, 105, 0.45);
  transform: translateY(-1px);
}

.pass-checkin-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.pass-checkin-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.pass-checkin-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 24px;
  background: #f0fff4;
  border: 2px solid #9ae6b4;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
  animation: pass-fadeIn 0.3s ease;
}

.pass-checkin-success-icon {
  font-size: 32px;
  color: #38a169;
}

.pass-checkin-success-text {
  font-size: 16px;
  font-weight: 700;
  color: #276749;
}

.pass-checkin-success-time {
  font-size: 12px;
  color: #68d391;
}

.pass-checkin-already {
  background: #fff5f5;
  border-color: #feb2b2;
}

.pass-checkin-already .pass-checkin-success-icon {
  color: #e53e3e;
}

.pass-checkin-already .pass-checkin-success-text {
  color: #c53030;
}

.pass-checkin-already .pass-checkin-success-time {
  color: #fc8181;
}

@keyframes pass-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
