body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  /* Gradasi Coklat Warm Khas Coffee Shop & Billiard Lounge */
  background: linear-gradient(135deg, #2b1704, #5c320d, #8C4A1D);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #f8f9fa;
}

/* ============ MODE FORM (gagal / belum login) ============ */
.login-container {
  background: rgba(255, 255, 255, 0.96);
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(210, 105, 30, 0.2);
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.4s ease;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: block;
  margin: 0 auto 15px;
  width: 85px;
  height: auto;
}

.login-title {
  text-align: center;
  font-weight: 700;
  color: #2b1704;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.form-control {
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: #8B4513;
  box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Tombol Utama - Gradasi Coklat Karamel Emas */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 700;
  color: #ffffff !important;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #74380e, #b85814) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.error {
  color: #dc3545;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: #6c757d;
  margin-top: 25px;
}

.login-footer i {
  color: #dc3545;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ============ MODE SPLASH (login sukses) ============ */
.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #120a03, #2b1704, #5c320d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-logo {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
}

.splash-text {
  color: #f5c888;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.rotate {
  animation: spinLogo 3s linear forwards;
}

@keyframes spinLogo {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Biar pas mode splash, form gak keliatan di belakang */
body[data-mode="splash"] .login-container {
  display: none !important;
}