/* =====================================
   MPO1221 - STYLE.CSS
   Black / Gold / Red Glow / Gold Shine
===================================== */

* {
  box-sizing: border-box;
}

:root {
  --background: #090504;
  --card: #160b08;
  --text: #f5f8ff;
  --muted: #a7b5cc;
  --blue: #ff3333;
  --orange: #ffc52f;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      ellipse at top,
      rgba(180, 20, 12, 0.22),
      transparent 55%
    ),
    linear-gradient(180deg, #160706, #050303);
}

/* KOTAK UTAMA */

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #1d100b, #080504);
  border: 1px solid rgba(255, 190, 48, 0.34);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

/* HEADER */

.site-header {
  margin-bottom: 22px;
  text-align: center;
}

.logo {
  display: block;
  width: 110px;
  max-width: 45%;
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 9px;
  color: #ffd34f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

.subtitle {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 800;
  line-height: 1.35;
}

/* BANNER */

.banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 26px;
  border: 1px solid rgba(255, 183, 44, 0.3);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* SUSUNAN TOMBOL */

.buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  filter: brightness(1.15);
}

.button:active {
  transform: scale(0.97);
}

.button span {
  position: relative;
  z-index: 2;
}

/* =====================================
   LOGIN - ANIMASI GLOW BIRU
===================================== */

.button.login {
  z-index: 1;
  overflow: visible;
  background: linear-gradient(
    135deg,
    #ff3434 0%,
    #c81717 50%,
    #720808 100%
  );
  border-color: #ffaaaa;
  box-shadow:
    0 0 8px rgba(255, 45, 45, 0.9),
    0 0 18px rgba(255, 35, 35, 0.65);
  animation: loginPulse 1.2s ease-in-out infinite alternate;
}

/* Lapisan cahaya di belakang tombol */

.button.login::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px;
  border-radius: 15px;
  background: #ff2525;
  filter: blur(12px);
  opacity: 0.45;
  animation: loginAura 1.2s ease-in-out infinite alternate;
}

@keyframes loginPulse {
  from {
    box-shadow:
      0 0 5px rgba(255, 45, 45, 0.7),
      0 0 12px rgba(255, 45, 45, 0.45);
  }

  to {
    box-shadow:
      0 0 12px rgba(255, 100, 100, 1),
      0 0 25px rgba(22, 140, 255, 0.95),
      0 0 38px rgba(190, 0, 0, 0.7);
  }
}

@keyframes loginAura {
  from {
    opacity: 0.3;
    transform: scale(0.97);
  }

  to {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

/* =====================================
   DAFTAR - KILAU ORANYE BERGERAK
===================================== */

.button.register {
  background: linear-gradient(
    135deg,
    #ffe16a 0%,
    #ffbd25 48%,
    #d98700 100%
  );
  border-color: #fff0a8;
  box-shadow:
    0 5px 18px rgba(255, 190, 25, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button.register::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -100%;
  width: 45%;
  height: 220%;
  pointer-events: none;
  transform: rotate(25deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  animation: registerShine 2.2s ease-in-out infinite;
}

@keyframes registerShine {
  0% {
    left: -100%;
  }

  55%, 100% {
    left: 150%;
  }
}

/* TOMBOL BUKA LINK */

.button.alternative {
  grid-column: 1 / -1;
  min-height: 50px;
  color: #fff0bd;
  background: linear-gradient(135deg, #2b1607, #130a04);
  border-color: rgba(255, 190, 45, 0.5);
}

.button.alternative:hover {
  background: #3b2108;
  border-color: #ffd04b;
}

/* BAGIAN INFORMASI */

.intro {
  padding: 20px;
  background: rgba(18, 8, 5, 0.7);
  border: 1px solid rgba(255, 190, 50, 0.2);
  border-radius: 14px;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #72baff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.intro h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* FOOTER */

.footer {
  margin-top: 25px;
  text-align: center;
}

.footer-line {
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 190, 50, 0.5),
    transparent
  );
}

.footer-brand {
  margin: 0 0 8px;
  color: #fff0c2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.footer-brand span {
  color: #ffd04b;
}

.copyright {
  margin: 0;
  color: #b29a76;
  font-size: 11px;
  line-height: 1.6;
}

/* TAMPILAN HP */

@media (max-width: 480px) {
  body {
    padding: 16px 10px;
  }

  .container {
    padding: 20px 15px;
    border-radius: 18px;
  }

  .logo {
    width: 95px;
  }

  .site-header {
    margin-bottom: 18px;
  }

  .banner {
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .buttons {
    gap: 12px;
    margin-bottom: 25px;
  }

  .button {
    min-height: 50px;
    padding: 13px 6px;
    font-size: 12px;
    letter-spacing: 0.7px;
  }

  .intro {
    padding: 17px;
  }

  .intro h2 {
    font-size: 18px;
  }

  .intro p {
    font-size: 12px;
  }
}

/* PENGATURAN AKSESIBILITAS */

@media (prefers-reduced-motion: reduce) {
  .button.login,
  .button.login::before,
  .button.register::before {
    animation: none;
  }

  .button {
    transition: none;
  }
}
/* Footer brand link: gold and visibly clickable back to the main page */
.footer-home-link {
  color: #f4c95d;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 800;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.footer-home-link:hover,
.footer-home-link:focus-visible {
  color: #ffe7a0;
  text-decoration-color: #ffe7a0;
}
.footer-home-link:focus-visible { outline: 2px solid #f4c95d; outline-offset: 3px; border-radius: 2px; }
