/* ===== Reset Dasar ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Background Utama ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #f1f1f1;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* ===== Layer Nebula ===== */
.nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  background: url("https://raw.githubusercontent.com/WILLzzz-Termux/thumb/main/bg.jpg") no-repeat center center;
  background-size: cover;
  filter: brightness(0.8);
  animation: moveNebula 60s ease-in-out infinite alternate;
  z-index: -3;
}

@keyframes moveNebula {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-25px, -25px);
  }
  100% {
    transform: scale(1) translate(25px, 25px);
  }
}

/* ===== Stars Overlay ===== */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(white 1px, transparent 1px) 0 0 / 3px 3px;
  opacity: 0.25;
  animation: starsMove 100s linear infinite;
  z-index: -2;
}

@keyframes starsMove {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-500px, -500px);
  }
}

/* ===== Planet Bergerak ===== */
.planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(0.3px);
  z-index: -1;
}

.planet1 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #ffd89b, #19547b);
  top: 30%;
  left: 10%;
  animation: orbit1 45s linear infinite;
}

.planet2 {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 20% 20%, #7F00FF, #E100FF);
  bottom: 20%;
  right: 15%;
  animation: orbit2 60s linear infinite;
}

.planet3 {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle at 40% 40%, #89f7fe, #66a6ff);
  top: 15%;
  right: 35%;
  animation: orbit3 90s linear infinite;
}

/* Animasi planet terus berulang */
@keyframes orbit1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, -30px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbit2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-80px, 40px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbit3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(60px, 60px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* ===== Container & Card ===== */
.container {
  width: 100%;
  max-width: 500px;
  z-index: 2;
}

.card {
  background: rgba(25, 25, 40, 0.75);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Heading ===== */
h1 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 28px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.subtitle {
  color: #d0d0ff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 14px;
}

/* ===== Form Input ===== */
.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #e2e2ff;
  font-weight: 500;
  font-size: 14px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #7f9cff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(127, 156, 255, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

small {
  display: block;
  margin-top: 5px;
  color: #ccc;
  font-size: 12px;
}

/* ===== Tombol ===== */
button {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(118, 75, 162, 0.4);
}

button.loading .btn-text {
  display: none;
}
button.loading .btn-loading {
  display: inline-block;
}

/* ===== Status Message ===== */
.status-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-message.show {
  opacity: 1;
}

.status-message.success {
  background: rgba(40, 167, 69, 0.15);
  color: #9fffa7;
  border: 1px solid rgba(40, 167, 69, 0.4);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ffb3b3;
  border: 1px solid rgba(220, 53, 69, 0.4);
}

/* ===== Info Box ===== */
.info-box {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box h3 {
  color: #b3c0ff;
  margin-bottom: 15px;
  font-size: 16px;
}

.info-box ul {
  list-style: none;
  color: #d5d8ff;
  font-size: 14px;
}

.info-box li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.info-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7effb3;
  font-weight: bold;
}

/* ===== Responsif ===== */
@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }
  h1 {
    font-size: 22px;
  }
}
