:root {
  color-scheme: light;
  --bg: #081533;
  --surface: rgba(6, 15, 38, 0.72);
  --ink: #f7f2df;
  --muted: rgba(247, 242, 223, 0.82);
  --accent: #f3c74f;
  --accent-dark: #d6a72c;
  --line: rgba(243, 199, 79, 0.26);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(66, 135, 245, 0.42), transparent 34rem),
    linear-gradient(180deg, #13264e 0%, #091126 52%, #030816 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-shell {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #061126;
}

.hero__link {
  position: relative;
  display: block;
  min-height: auto;
  text-decoration: none;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.hero__link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 24, 0.12));
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 158px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  background: #25d366;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.35);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.floating-daftar {
  display: block;
  width: 100%;
  z-index: 20;
  text-decoration: none;
}

.floating-daftar--inline {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0;
  animation: floaty 4.2s ease-in-out infinite;
}

.floating-daftar--inline img {
  width: 100%;
  max-width: none;
}

.floating-daftar img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.floating-daftar:hover img {
  transform: translateY(-2px) scale(1.025);
  filter:
    drop-shadow(0 0 16px rgba(243, 199, 79, 0.35))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.32));
}

.floating-daftar::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.26) 48%,
    transparent 62%
  );
  transform: translateX(-140%);
  animation: shine 5.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.admin-card {
  width: min(100%, 680px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(20, 28, 44, 0.12);
  border-radius: 38px;
  color: #10233f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(8, 15, 30, 0.22);
  backdrop-filter: blur(20px);
}

.admin-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.admin-header {
  margin-bottom: 26px;
}

.admin-note {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 18px;
  background: rgba(16, 35, 63, 0.04);
  color: rgba(16, 35, 63, 0.8);
  line-height: 1.6;
}

.admin-card__lead {
  margin-bottom: 30px;
  color: rgba(16, 35, 63, 0.8);
  line-height: 1.7;
}

.admin-card__lead code {
  color: #10233f;
  background: rgba(16, 35, 63, 0.08);
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #10233f;
}

.admin-form span {
  color: rgba(16, 35, 63, 0.68);
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-form .field-group {
  display: grid;
  gap: 8px;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  color: #10233f;
  background: #ffffff;
  font: inherit;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: rgba(16, 35, 63, 0.4);
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: 3px solid rgba(56, 122, 255, 0.16);
  border-color: rgba(56, 122, 255, 0.7);
}

.admin-status {
  min-height: 1.5em;
  margin: 0;
  color: rgba(16, 35, 63, 0.72);
  font-weight: 700;
}

.admin-status[data-tone="success"] {
  color: #0f7a3c;
}

.admin-status[data-tone="error"] {
  color: #c81e1e;
}

.admin-status[data-tone="pending"] {
  color: #8a5a00;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: white;
  background: linear-gradient(180deg, #387aff 0%, #1d56d8 100%);
  box-shadow: 0 18px 34px rgba(29, 86, 216, 0.28);
}

.button--primary[type="submit"] {
  margin-top: 6px;
}

.button--primary:hover {
  background: linear-gradient(180deg, #4d8aff 0%, #254fbe 100%);
}

@media (max-width: 880px) {
  .page-shell {
    width: calc(100% - 14px);
    padding: 7px 0 14px;
  }

  .hero {
    min-height: auto;
    border-radius: 18px;
  }

  .hero__link,
  .hero__image {
    min-height: auto;
    height: auto;
  }

  .hero {
    background: #000;
  }

  .hero__image {
    object-fit: contain;
    object-position: center center;
    background: #000;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 164px;
    width: 54px;
    height: 54px;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.01);
  }
}

@keyframes shine {
  0%,
  62% {
    transform: translateX(-140%);
    opacity: 0;
  }

  72% {
    opacity: 1;
  }

  82% {
    transform: translateX(140%);
    opacity: 0;
  }

  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}
