* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

.countdown-section {
  text-align: center;
  margin-bottom: 24px;
}

.countdown-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.countdown-box {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.countdown-item {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(49, 46, 129, 0.3);
}

.countdown-item .number {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown-item .label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.countdown-open {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border-radius: 12px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.countdown-open .pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Animated background particles */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 80% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200px 200px;
  animation: floatStars 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatStars {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.main-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px 40px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.main-card:hover {
  transform: translateY(-2px);
}

.logo-area {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.logo-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.logo-area h1 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.logo-area p {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  margin-bottom: 28px;
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.nisn-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 2px;
  color: #1a1a2e;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.3s ease;
  text-align: center;
}

.nisn-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.nisn-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 16px;
}

.nisn-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cek {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.btn-cek:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-cek:active:not(:disabled) {
  transform: translateY(0);
}

.btn-cek:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-cek .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

.btn-cek.loading .btn-text {
  display: none;
}

.btn-cek.loading .spinner {
  display: block;
}

.btn-cek,
.btn-cek:hover,
.btn-cek:active,
.btn-cek:focus {
  pointer-events: auto !important;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.info-text {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #9ca3af;
}

.info-text strong {
  color: #6b7280;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.hit-counter {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.hit-counter #hitCounter {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 576px) {
  .hit-counter {
    display: block;
    margin-top: 4px;
  }
}

/* Responsive */
@media (max-width: 576px) {
  .main-card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }

  .logo-icon {
    width: 64px;
    height: 64px;
  }

  .logo-icon svg {
    width: 32px;
    height: 32px;
  }

  .logo-area h1 {
    font-size: 20px;
  }

  .nisn-input {
    font-size: 18px;
    padding: 14px 16px;
  }

  .btn-cek {
    padding: 14px 20px;
    font-size: 15px;
  }
}
