:root {
  --green: #44e623;
  --green-hover: #62f540;
  --page-bg: #121110;
  --glass: rgba(54, 50, 48, 0.55);
  --glass-soft: rgba(255, 255, 255, 0.03);
  --field: rgba(18, 17, 16, 0.6);
  --line: rgba(68, 230, 35, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f0f7ed;
  --text-2: #c8dcc2;
  --muted: #8fa685;
  --danger: #ff6b6b;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { background: var(--page-bg); }

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
body::before {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -160px;
  background: rgba(68, 230, 35, 0.14);
  filter: blur(90px);
  animation: authAuroraA 16s ease-in-out infinite alternate;
}
body::after {
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -160px;
  background: rgba(96, 165, 250, 0.12);
  filter: blur(90px);
  animation: authAuroraB 20s ease-in-out infinite alternate;
}
@keyframes authAuroraA {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40vw, 20vh) scale(1.2); }
  100% { transform: translate(15vw, 45vh) scale(0.9); }
}
@keyframes authAuroraB {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35vw, -25vh) scale(1.15); }
  100% { transform: translate(-10vw, -50vh) scale(0.95); }
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

.auth-box,
.box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-wide .auth-box { max-width: 520px; }

.auth-title,
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}
.auth-title img {
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
  border-radius: 14px !important;
}
.logo { font-size: 18px; color: var(--green); margin-bottom: 20px; }

.auth-sub,
.sub {
  margin-bottom: 26px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.box h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.box .sub { text-align: left; margin-bottom: 22px; }

.section-title,
.snk-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}
.section-title::before,
.snk-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.form-group,
.form-row { margin-bottom: 16px; }
.form-group label,
.form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.form-input,
.box input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input::placeholder,
.box input::placeholder { color: rgba(200, 220, 194, 0.4); }
.form-input:focus,
.box input:focus {
  border-color: rgba(68, 230, 35, 0.55);
  box-shadow: 0 0 0 4px rgba(68, 230, 35, 0.08);
  background: rgba(18, 17, 16, 0.8);
}

.file-input {
  width: 100%;
  padding: 10px;
  background: var(--field);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.file-input:hover { border-color: rgba(68, 230, 35, 0.45); }
.file-input::file-selector-button {
  margin-right: 12px;
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: rgba(68, 230, 35, 0.12);
  color: var(--green);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.file-hint { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.file-hint.ok { color: var(--green); }
.file-hint.err { color: var(--danger); }

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

.btn-submit,
.box .btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #0d110a;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.btn-submit:hover,
.box .btn:hover { background: var(--green-hover); opacity: 1; }
.btn-submit:active,
.box .btn:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-links a { font-weight: 600; }

.alert {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
}
.alert.error { background: rgba(230, 53, 53, 0.1); color: var(--danger); border: 1px solid rgba(230, 53, 53, 0.25); }
.alert.success { background: rgba(68, 230, 35, 0.1); color: var(--green); border: 1px solid rgba(68, 230, 35, 0.25); }
.box .err { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(230, 53, 53, 0.1); color: var(--danger); font-size: 13px; }
.box .ok { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(68, 230, 35, 0.1); color: var(--green); font-size: 13px; }
.box .invalid { padding: 20px 0; text-align: center; color: var(--danger); }

.divider { height: 1px; margin: 22px 0; background: var(--line-soft); }

.snk-section { margin-bottom: 20px; }
.snk-scroll {
  max-height: 230px;
  overflow-y: auto;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(240, 247, 237, 0.75);
  text-align: left;
}
.snk-scroll::-webkit-scrollbar { width: 6px; }
.snk-scroll::-webkit-scrollbar-thumb { background: rgba(68, 230, 35, 0.35); border-radius: 3px; }
.snk-meta { margin-bottom: 10px; font-size: 11px; color: var(--muted); }
.snk-list { list-style: none; margin: 0 0 14px; padding: 0; }
.snk-list li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.snk-num { position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.snk-list b { color: var(--text); }
.snk-pernyataan {
  padding: 12px 14px;
  background: rgba(230, 53, 53, 0.08);
  border: 1px solid rgba(230, 53, 53, 0.25);
  border-radius: 12px;
  color: #ffb3b3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
}
.snk-pernyataan .nm { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.snk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(68, 230, 35, 0.06);
  border: 1px solid rgba(68, 230, 35, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.snk-check:hover { border-color: rgba(68, 230, 35, 0.4); }
.snk-check.warn { border-color: var(--danger); background: rgba(230, 53, 53, 0.1); }
.snk-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--green); cursor: pointer; }
.snk-check span { font-size: 12.5px; line-height: 1.6; color: rgba(240, 247, 237, 0.85); }

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.popup-overlay.open { display: flex; }
.popup-box {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  background: rgba(34, 31, 30, 0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.popup-logo { display: block; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; }
.popup-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--green);
}
.popup-msg { margin-bottom: 22px; font-size: 14px; line-height: 1.7; color: rgba(240, 247, 237, 0.75); }
.popup-msg b { color: var(--text); }
.btn-popup-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.btn-popup-wa:hover { opacity: 0.9; color: #fff; }

@media (max-width: 480px) {
  body { padding: 20px 12px; align-items: flex-start; }
  .auth-box,
  .box { padding: 26px 18px 22px; border-radius: 18px; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after { animation: none; }
}