/* ============================
   LOGIN.CSS (FIX DESKTOP)
   ============================ */

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #0d1117, #1f2937);
  color: #fff;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container utama */
.login-container {
  width: 100%;
  padding: 20px;
}

/* Card Login */
.card {
  border-radius: 1.2rem;
  background: rgba(17, 25, 40, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 420px;   /* ✅ Batas maksimal lebar card di desktop */
  margin: auto;       /* ✅ Agar card selalu di tengah */
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

/* Logo */
.logo-img {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.6));
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Input */
.form-control {
  background: #111827;
  border: 1px solid #374151;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.form-control:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  background: #0f172a;
  color: #fff;
}

/* Button */
.btn-primary {
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.7);
  transform: scale(1.02);
}

/* Alert */
.alert {
  border-radius: 0.75rem;
  font-size: 0.9rem;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Link */
a {
  color: #4facfe;
  text-decoration: none;
}

a:hover {
  color: #00f2fe;
  text-decoration: underline;
}

/* Responsif */
@media (max-width: 576px) {
  .card {
    max-width: 100%;   /* ✅ di HP biar full */
    margin: 10px;
  }
  .logo-img {
    max-width: 90px;
  }
}
