:root {
  --rspi-green-900: #0d5f3f;
  --rspi-green-700: #198754;
  --rspi-green-500: #3cb371;
  --rspi-mint-100: #ecf8f1;
  --rspi-mint-200: #d8f0e2;
  --rspi-ink: #163127;
  --rspi-muted: #5f7268;
  --rspi-border: rgba(25, 135, 84, 0.14);
  --rspi-shadow: 0 18px 50px rgba(18, 66, 46, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--rspi-ink);
  background:
    radial-gradient(circle at top left, rgba(60, 179, 113, 0.22), transparent 32%),
    linear-gradient(180deg, #f7fcf8 0%, #eef8f1 100%);
  min-height: 100vh;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.55;
  pointer-events: none;
}

.shape-one {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -60px;
  background: rgba(60, 179, 113, 0.16);
}

.shape-two {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -40px;
  background: rgba(13, 95, 63, 0.12);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--rspi-shadow);
  animation: rise-in 500ms ease-out both;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--rspi-green-900), var(--rspi-green-500));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rspi-green-900);
}

.hero-title {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-copy,
.section-copy {
  color: var(--rspi-muted);
}

.attendance-card {
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rspi-shadow);
  animation: rise-in 700ms ease-out both;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.form-label {
  font-weight: 600;
  color: var(--rspi-ink);
}

.form-control {
  border-radius: 1rem;
  border-color: rgba(22, 49, 39, 0.1);
  padding: 0.9rem 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.form-control:focus {
  border-color: rgba(25, 135, 84, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.12);
  transform: translateY(-1px);
}

.signature-panel {
  border: 1px solid var(--rspi-border);
  border-radius: 1.35rem;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.signature-hint {
  padding: 0.9rem 1rem;
  background: var(--rspi-mint-100);
  color: var(--rspi-green-900);
  font-size: 0.95rem;
  font-weight: 600;
}

.signature-canvas-wrap {
  position: relative;
  min-height: 240px;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: 240px;
  background:
    linear-gradient(transparent 31px, rgba(25, 135, 84, 0.06) 32px),
    linear-gradient(90deg, transparent 31px, rgba(25, 135, 84, 0.04) 32px);
  background-size: 32px 32px;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--rspi-green-900), var(--rspi-green-700));
  border: none;
  border-radius: 999px;
  padding-block: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(25, 135, 84, 0.2);
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #0b5136, #157347);
}

.btn-link {
  color: var(--rspi-green-900);
  font-weight: 700;
}

.btn-link:hover,
.btn-link:focus {
  color: #0b5136;
}

.toast {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.alert {
  border-radius: 1rem;
  border: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .hero-panel {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  .attendance-card {
    border-radius: 1.4rem;
  }

  #signatureCanvas,
  .signature-canvas-wrap {
    min-height: 210px;
    height: 210px;
  }
}
