/* ───────────── Overall container centered ───────────── */
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* horizontally center */
  align-items: center; /* vertically center */
  min-height: 100vh;
  background: #0f0f1e; /* dark background */
  font-family: 'Segoe UI', sans-serif;
  color: #e0e0ff;
  flex-direction: column; /* biar stack di layar kecil */
}
.pp-navbar {
  position: fixed;
  top: 18px;
  right: 32px;
  z-index: 100;
  display: flex;
  gap: 14px;
  background: rgba(245,245,247,0.93);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30,35,80,0.10);
  padding: 5px 15px;
}

.pp-nav-btn {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #23232c;
  text-decoration: none;
  font-size: 1em;
  border-radius: 6px;
  padding: 4px 12px 4px 6px;
  transition: background 0.15s, color 0.15s;
}

.pp-nav-btn:hover {
  background: #e6fafd;
  color: #00b4ff;
}

.pp-nav-btn svg {
  margin-right: 3px;
}

@media (max-width: 600px) {
  .pp-navbar {
    top: 8px;
    right: 2vw;
    padding: 3px 6px;
    gap: 7px;
  }
  .pp-nav-btn {
    font-size: 0.98em;
    padding: 4px 7px 4px 4px;
  }
}
 

/* ---------- Nav Links ---------- */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* biar otomatis turun di layar kecil */
}
.navbar .nav-link {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  color: #ccc;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: #00ffe7;
  transition: width 0.3s ease;
}
.navbar .nav-link:hover {
  color: #00ffe7;
}
.navbar .nav-link:hover::after {
  width: 100%;
}

/* ───────────── Form box ───────────── */
.form-box {
  background: #1f1f2e;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(126,63,242,0.5);
  width: 100%;
  max-width: 400px;
}

/* ───────────── Headings ───────────── */
.form-box h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #e0e0ff;
}

/* ───────────── Inputs & buttons ───────────── */
.form-control {
  background: #2a2a48;
  border: 1px solid #3a3a5e;
  color: #e0e0ff;
}
.form-control:focus {
  border-color: #7e3ff2;
  box-shadow: none;
}

/* ───────────── Labels & Inputs ───────────── */
.form-box label {
  display: block;
  margin-bottom: 0.5rem; /* space between label & input */
  font-weight: 500;
  color: #c0c0ff;
}

.btn-primary {
  background: #7e3ff2;
  border: none;
}
.btn-primary:hover {
  background: #965dfa;
}
.btn-success {
  background: #27a745;
  border: none;
}
.btn-success:hover {
  background: #1e7e34;
}
.btn-link {
  color: #7e3ff2;
  text-decoration: none;
}
.btn-link:hover {
  text-decoration: underline;
}

/* ───────────── Feedback ───────────── */
.invalid-feedback,
.alert-danger,
.alert-info {
  color: #ff6b6b;
}

/* ───────────── Responsive tweaks ───────────── */
@media(max-width: 768px) {
   
  .navbar {
    flex-direction: column; /* susun ke bawah */
    align-items: center;
  }
  .navbar .nav-link {
    margin: 0.3rem 0;
    font-size: 0.95rem;
  }
}

@media(max-width: 480px) {
  body {
    padding: 1rem;
  }
  .form-box {
    padding: 1rem;
  }
  .form-box h4 {
    font-size: 1.1rem;
  } 
  .navbar .nav-link {
    font-size: 0.85rem;
  }
}
