/* ============================================
   LOGIN.CSS — Halaman Login
   ============================================ */

.login-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden; /* Mencegah scroll */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-main);
}

/* Gambar background dengan efek blur */
.login-body::after {
  content: '';
  position: absolute;
  /* Diberi sedikit offset (-20px) agar tepi blur tidak menghasilkan garis putih */
  top: -20px; left: -20px; right: -20px; bottom: -20px; 
  background: url('../img/rantau_image.png') no-repeat center center;
  background-size: cover;
  filter: blur(5px);
  z-index: 0;
}

.login-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* Elegant dark overlay */
  z-index: 1;
}

.login-theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.login-wrapper {
  width: 100%;
  max-width: 340px; /* Diperkecil */
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Animasi Tahapan Login */
.login-step {
  animation: slideInStep 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInStep {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Animasi Focus Input khusus Login */
.login-form .form-input {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.login-form .form-input:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(55, 182, 233, 0.2);
  border-color: var(--accent-blue);
}

.login-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-lg);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.login-heading h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-heading p {
  font-size: 12px;
  color: var(--text-secondary);
}

.login-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--accent-red);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-submit-btn {
  margin-top: 4px;
}

.login-footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-secondary);
}