:root {
  --orbit-x-radius: 340px;
  --orbit-y-radius: 60px;
  --electron-size: 240px;
}

* {
    box-sizing: border-box; /* Mencegah padding menambah tinggi/lebar total */
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0f19;
  overflow: hidden; /* Ganti dari overflow-y: auto ke hidden agar tidak bisa di-scroll */
  padding: 24px 16px;
  position: relative;
}

/* Container Background Animasi */
.atom-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  width: 0;
  height: 0;
}

/* ORBIT 1: BIRU (Murni Sumbu X - Kurva Sinus/Cosinus Halus) */
.orbit-1 {
  position: absolute;
  top: 0;
  left: 0;
}

.blue-x {
  animation: move-blue-x 6s ease-in-out infinite alternate;
}

.blue-y {
  animation: move-blue-y 6s ease-in-out infinite alternate;
  animation-delay: -1.5s;
}

.electron-blue {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: var(--electron-size);
  height: var(--electron-size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.9) 0%, rgba(56, 189, 248, 0.3) 45%, rgba(56, 189, 248, 0) 70%);
  filter: blur(40px);
}

@keyframes move-blue-x {
  from {
    transform: translateX(calc(var(--orbit-x-radius) * -1));
  }

  to {
    transform: translateX(var(--orbit-x-radius));
  }
}

@keyframes move-blue-y {
  from {
    transform: translateY(calc(var(--orbit-y-radius) * -1));
  }

  to {
    transform: translateY(var(--orbit-y-radius));
  }
}

/* ORBIT 2: ORANYE (Diagonal / Melintang) */
.orbit-2 {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: calc(var(--orbit-x-radius) * 2);
  height: calc(var(--orbit-y-radius) * 3.5);
}

.orbit-track-orange {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  animation: spin-reverse 7s linear infinite;
}

.electron-orange {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: var(--electron-size);
  height: var(--electron-size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.85) 0%, rgba(249, 115, 22, 0.3) 45%, rgba(249, 115, 22, 0) 70%);
  filter: blur(45px);
}

@keyframes spin-reverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Glass Card */
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.header-section {
  text-align: center;
  margin-bottom: 10px;
}

.brand-logo {
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.brand-logo span {
  color: #38bdf8;
}

.subtitle {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.4;
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i.lead-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
  color: #64748b;
}

.input-wrapper input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.toggle-password {
  position: absolute;
  right: 16px;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #f8fafc;
}

.actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 22px;
}

.actions-row a {
  color: #38bdf8;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

.actions-row a:hover {
  text-decoration: underline;
}

/* Tombol Submit */
.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #818cf8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(2, 132, 199, 0.6);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
  padding: 0 12px;
}

/* Social Buttons */
.social-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-text {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 24px;
}

.footer-text a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.footer-text a:hover {
  text-decoration: underline;
}


.text-danger {
  color: #f3eeee;
}

#correct-password {
  padding-top: 6px;
  font-size: 12px;
  color: #f87171;
}

/* ================= RESPONSIVE BREAKPOINTS ================= */

/* Tablet (Lebar layar <= 768px) */
@media (max-width: 768px) {
  :root {
    --orbit-x-radius: 260px;
    --orbit-y-radius: 45px;
    --electron-size: 200px;
  }

  .login-card {
    padding: 34px 26px;
  }

  .brand-logo {
    font-size: 16px !important;
  }

  .subtitle {
    font-size: 18px;
  }
}

/* Mobile (Lebar layar <= 480px) */
@media (max-width: 480px) {
  :root {
    --orbit-x-radius: 170px;
    --orbit-y-radius: 35px;
    --electron-size: 160px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .brand-logo {
    font-size: 12px !important;
  }

  .subtitle {
    font-size: 10px;
  }

  .input-wrapper input {
    padding: 12px 40px;
    font-size: 13px;
  }

  .btn-submit {
    padding: 12px;
    font-size: 14px;
  }

  .social-group {
    grid-template-columns: 1fr;
  }
}