* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

:root {
  --page-background: #061125;
  --text: #e5f2ff;
  --highlight: #7dd3fc;
  --muted: #98aec9;
}

body {
  margin: 0;
  font-family: monospace;
  position: relative;
  color: var(--text);
  background: var(--page-background);
  background-image: radial-gradient(#18304d 5%, transparent 50%);
  background-size: 6px 6px;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
}

.brand img {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
}

.welcome {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 5px;
}

.welcome h1 {
  margin: 10px 0 15px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.09em;
  overflow-wrap: anywhere;
}

.welcome .text-accent {
  color: var(--highlight);
}

.welcome h1::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -1px;
  background: #38bdf8;
  animation: blink-caret 0.75s step-end infinite;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #3b93d1;
  border-radius: 12px;
  box-shadow: 0 0 24px rgb(56 189 248 / 25%);
}

.btn-login,
.btn-daftar {
  display: block;
  flex-shrink: 0;
  padding: 12px 10px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  margin-top: 10px;
  border-radius: 10px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f2faff;
  background: linear-gradient(135deg, #0873b2, #1d4ed8);
  border: 1px solid #7dd3fc;
  animation: glowPulse 2.5s infinite ease-in-out;
  transition: filter 180ms ease, transform 180ms ease;
}

.btn-daftar {
  border-color: #4ab9ef;
}

.btn-login:hover,
.btn-daftar:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-login:active,
.btn-daftar:active {
  transform: translateY(1px);
}

a:focus-visible {
  outline: 3px solid #bae6fd;
  outline-offset: 4px;
}

.btn-login::before,
.btn-daftar::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0 auto 0 -75%;
  width: 50%;
  background: linear-gradient(120deg, transparent 0%, rgb(224 245 255 / 35%) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: shineMove 3s infinite;
}

.copyright {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.copyright a {
  color: var(--highlight);
  text-underline-offset: 3px;
}

@keyframes blink-caret {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes shineMove {
  0% { left: -75%; }
  100% { left: 125%; }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgb(56 189 248 / 25%), inset 0 0 8px rgb(224 245 255 / 12%);
  }
  50% {
    box-shadow: 0 0 20px rgb(56 189 248 / 45%), inset 0 0 12px rgb(224 245 255 / 20%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
