/* Reset box sizing agar padding kiri/kanan konsisten */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Background overlay */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f3f4f6;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px; /* jaga jarak modal dari tepi kiri/kanan */
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 28px 28px; /* padding kanan & kiri sama */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.4rem;
}

p.lead {
  text-align: center;
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input {
  width: 100%;
  padding: 12px 14px; /* kanan & kiri sama */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: 0.2s;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}

button {
  padding: 12px 14px; /* kanan & kiri sama */
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #1d4ed8;
}

.login-link {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.login-link a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  transition: 0.2s;
}

select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}
/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* awalnya disembunyikan */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: #fff;
  font-size: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
