/* ============================================
   E-SATUPINTU — Login Page Styles
   ============================================ */

.login-body {
  min-height: 100vh;
  background: var(--gray-100);
  display: flex;
  align-items: stretch;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ---- Left Panel ---- */
.login-left {
  flex: 1.1;
  background: linear-gradient(145deg, var(--bpom-navy) 0%, var(--bpom-navy-mid) 40%, var(--bpom-blue-dark) 75%, var(--bpom-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.login-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: rgba(0,153,68,0.15);
  border-radius: 50%;
}

.login-brand-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  max-width: 380px;
}

.brand-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

.login-brand-content > .brand-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.brand-logo-fallback {
  display: none;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.logo-text-big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
}

.brand-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 30px;
}

.brand-divider {
  width: 50px;
  height: 3px;
  background: var(--bpom-green-light);
  border-radius: var(--radius-full);
  margin: 0 auto 28px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  text-align: left;
}

.brand-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  transition: var(--transition);
}

.brand-feature-item:hover {
  background: rgba(255,255,255,0.13);
}

.brand-feature-item i {
  font-size: 1rem;
  color: var(--bpom-green-light);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.brand-footer-text {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ---- Right Panel ---- */
.login-right {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--white);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bpom-blue), var(--bpom-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(0,102,204,0.3);
}

.login-logo-wrap i {
  color: var(--white);
  font-size: 1.6rem;
}

.login-card-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.login-card-header p {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

/* ---- Login Form ---- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-group label i {
  color: var(--bpom-blue);
  font-size: 0.85rem;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 13px 16px;
  padding-right: 44px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
}

.input-wrap input:focus {
  border-color: var(--bpom-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

.input-wrap input::placeholder {
  color: var(--gray-400);
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.95rem;
  padding: 4px;
  transition: var(--transition);
}

.toggle-pass:hover { color: var(--bpom-blue); }

.form-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--bpom-blue);
  border-color: var(--bpom-blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 10px;
}

.forgot-link {
  font-size: var(--font-size-sm);
  color: var(--bpom-blue);
  font-weight: 500;
  transition: var(--transition);
}
.forgot-link:hover { color: var(--bpom-blue-dark); text-decoration: underline; }

/* ---- Login Button ---- */
.btn-login {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--bpom-blue) 0%, var(--bpom-navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0,102,204,0.35);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn-login:hover::before { background: rgba(255,255,255,0.08); }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,102,204,0.4); }
.btn-login:active { transform: translateY(0); }

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text, .btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ---- Login Hint ---- */
.login-hint {
  margin-top: 24px;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.login-hint > p {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.hint-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-xs);
  color: var(--gray-600);
}

.hint-role {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 60px;
  text-align: center;
}

.hint-role.admin { background: var(--bpom-blue-pale); color: var(--bpom-blue-dark); }
.hint-role.petugas { background: var(--bpom-green-pale); color: var(--bpom-green-dark); }

/* ---- Card Footer ---- */
.login-card-footer {
  text-align: center;
  margin-top: 24px;
  font-size: var(--font-size-xs);
  color: var(--gray-400);
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { flex: 1; background: var(--gray-100); }
  .login-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 480px) {
  .login-right { padding: 20px 16px; }
  .login-card { padding: 28px 20px; }
}
.guest-capa-link{display:flex;align-items:center;gap:11px;margin-top:18px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#f8fcff,#eef7ff);color:#075985;text-decoration:none;transition:.2s ease}.guest-capa-link:hover{transform:translateY(-2px);border-color:#60a5fa;box-shadow:0 8px 20px rgba(0,94,184,.12)}.guest-capa-link>i:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#005eb8}.guest-capa-link>i:last-child{margin-left:auto;color:#005eb8}.guest-capa-link span{display:flex;flex-direction:column;gap:2px}.guest-capa-link strong{font-size:12px}.guest-capa-link small{font-size:10px;color:#64748b}


/* ============================================================
   E-SATUPINTU — Premium Login Page
   Glassmorphism · Mesh Gradient · Floating Labels · Soft Glow
   ============================================================ */

/* ---------- 1. PREMIUM TOKENS (override) ---------- */
:root {
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lp-dur-fast: 180ms;
  --lp-dur-base: 280ms;
  --lp-dur-slow: 480ms;

  --lp-glow-green: 0 0 0 1px rgba(51, 187, 109, 0.25), 0 12px 40px -12px rgba(0, 153, 68, 0.5);
  --lp-glow-blue:  0 0 0 1px rgba(51, 144, 224, 0.25), 0 12px 40px -12px rgba(0, 102, 204, 0.5);

  --lp-glass: rgba(255, 255, 255, 0.08);
  --lp-glass-strong: rgba(255, 255, 255, 0.14);
  --lp-glass-border: rgba(255, 255, 255, 0.18);
}

/* ---------- 2. BODY & WRAPPER ---------- */
.login-body {
  min-height: 100vh;
  background: #060B1A;
  overflow-x: hidden;
  position: relative;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   3. LEFT PANEL — HERO / BRANDING (Dark Premium)
   ============================================================ */
.login-left {
  flex: 1.15;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 153, 68, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 90% 90%, rgba(0, 102, 204, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(13, 27, 75, 0.65) 0%, transparent 70%),
    linear-gradient(145deg, #0A1530 0%, #0D1B4B 45%, #061029 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Animated mesh overlay */
.login-left::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 42% at 15% 20%, rgba(51, 187, 109, 0.22) 0%, transparent 60%),
    radial-gradient(40% 38% at 85% 15%, rgba(0, 102, 204, 0.20) 0%, transparent 60%),
    radial-gradient(36% 40% at 75% 85%, rgba(110, 231, 168, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  animation: meshFloat 22s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
@keyframes meshFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06) rotate(2deg); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02) rotate(-2deg); }
}

/* Floating orbs */
.login-left::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 187, 109, 0.35) 0%, rgba(51, 187, 109, 0.05) 45%, transparent 70%);
  filter: blur(30px);
  animation: orbFloat1 16s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-60px, 40px) scale(1.08); }
  66%      { transform: translate(30px, -50px) scale(0.94); }
}

/* Grid dots overlay for texture */
.login-brand-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  text-align: center;
  max-width: 440px;
  animation: heroEnter 0.9s var(--lp-ease) both;
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 3.1 Brand Badge ---------- */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 24px -8px rgba(0, 153, 68, 0.4);
  position: relative;
  overflow: hidden;
}
.brand-badge::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(110, 231, 168, 0.35) 50%,
    transparent 100%);
  transform: translateX(-100%);
  animation: badgeShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeShimmer {
  0%, 60%, 100% { transform: translateX(-100%); }
  80%           { transform: translateX(100%); }
}

/* ---------- 3.2 Brand Logo ---------- */
.brand-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 24px;
  filter:
    drop-shadow(0 8px 32px rgba(0, 153, 68, 0.5))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.02); }
}

.brand-logo-fallback { display: none; justify-content: center; margin-bottom: 24px; }
.logo-circle {
  width: 128px; height: 128px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(0, 153, 68, 0.24), rgba(0, 102, 204, 0.24));
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.03),
    0 20px 60px -20px rgba(0, 153, 68, 0.6);
  animation: logoFloat 5s ease-in-out infinite;
}
.logo-text-big {
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 153, 68, 0.6);
}

/* ---------- 3.3 Brand Title (Gradient Text) ---------- */
.brand-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(135deg,
    #FFFFFF 0%,
    #A7F3D0 45%,
    #6EE7A8 70%,
    #FFFFFF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(110, 231, 168, 0.35));
}
@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.brand-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
  margin-bottom: 34px;
  letter-spacing: 0.005em;
  font-weight: 400;
}

.brand-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #33BB6D, #6EE7A8, #33BB6D);
  background-size: 200% 100%;
  border-radius: 9999px;
  margin: 0 auto 34px;
  box-shadow: 0 0 20px rgba(51, 187, 109, 0.7);
  animation: dividerPulse 3s ease-in-out infinite;
}
@keyframes dividerPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(51, 187, 109, 0.6); width: 56px; }
  50%      { box-shadow: 0 0 32px rgba(51, 187, 109, 0.95); width: 72px; }
}

/* ---------- 3.4 Brand Features (Glass Cards) ---------- */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 38px;
  text-align: left;
}

.brand-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--lp-dur-base) var(--lp-ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.brand-feature-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6EE7A8, #33BB6D);
  opacity: 0;
  transition: opacity var(--lp-dur-base) var(--lp-ease);
  box-shadow: 0 0 12px rgba(110, 231, 168, 0.8);
}
.brand-feature-item:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(110, 231, 168, 0.35);
  transform: translateX(6px);
  box-shadow: 0 8px 24px -8px rgba(0, 153, 68, 0.5);
}
.brand-feature-item:hover::before { opacity: 1; }

.brand-feature-item i {
  font-size: 1rem;
  color: #6EE7A8;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(110, 231, 168, 0.6));
  transition: transform var(--lp-dur-base) var(--lp-ease-spring);
}
.brand-feature-item:hover i { transform: scale(1.15) rotate(-6deg); }

.brand-footer-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.8;
  letter-spacing: 0.02em;
}
.brand-footer-text strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* ============================================================
   4. RIGHT PANEL — LOGIN FORM (Light Premium)
   ============================================================ */
.login-right {
  flex: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px;
  background:
    radial-gradient(ellipse 70% 50% at 30% 10%, rgba(0, 153, 68, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(0, 102, 204, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #F4F7FB 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle dot pattern */
.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 27, 75, 0.055) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 25%, transparent 85%);
  pointer-events: none;
}

/* ---------- 4.1 Login Card (Glass Floating) ---------- */
.login-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  padding: 40px 36px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(13, 27, 75, 0.03),
    0 12px 32px -8px rgba(13, 27, 75, 0.08),
    0 32px 80px -20px rgba(13, 27, 75, 0.14);
  animation: cardEnter 0.8s var(--lp-ease) 0.15s both;
  transition: box-shadow var(--lp-dur-slow) var(--lp-ease);
}
.login-card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(13, 27, 75, 0.03),
    0 16px 40px -8px rgba(13, 27, 75, 0.10),
    0 40px 100px -24px rgba(13, 27, 75, 0.18);
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ---------- 4.2 Card Header ---------- */
.login-card-header {
  text-align: center;
  margin-bottom: 32px;
  animation: cardEnter 0.7s var(--lp-ease) 0.25s both;
}

.login-logo-wrap {
  width: 68px; height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #009944 0%, #007A36 60%, #004FA3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 12px 32px -8px rgba(0, 153, 68, 0.5),
    0 4px 12px -2px rgba(0, 79, 163, 0.3);
  position: relative;
  transition: transform var(--lp-dur-slow) var(--lp-ease-spring);
}
.login-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 153, 68, 0.4), rgba(0, 79, 163, 0.3));
  filter: blur(12px);
  z-index: -1;
  opacity: 0.7;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.08); }
}
.login-card:hover .login-logo-wrap { transform: scale(1.06) rotate(-4deg); }

.login-logo-wrap i {
  color: #FFFFFF;
  font-size: 1.65rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.login-card-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0A1628;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0A1628 0%, #1A2B6D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-card-header p {
  font-size: 0.84rem;
  color: #64748B;
  letter-spacing: 0.005em;
}

/* ---------- 4.3 Login Form ---------- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cardEnter 0.7s var(--lp-ease) 0.35s both;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
  transition: color var(--lp-dur-base) var(--lp-ease);
}
.form-group label i {
  color: #009944;
  font-size: 0.82rem;
  filter: drop-shadow(0 0 6px rgba(0, 153, 68, 0.35));
}

/* Input Wrap */
.input-wrap {
  position: relative;
  isolation: isolate;
}

.input-wrap input {
  width: 100%;
  padding: 14px 16px;
  padding-right: 46px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0F172A;
  background: rgba(248, 250, 252, 0.85);
  transition: all var(--lp-dur-base) var(--lp-ease);
  position: relative;
  z-index: 1;
}
.input-wrap input::placeholder {
  color: #94A3B8;
  font-weight: 400;
  transition: opacity var(--lp-dur-base) var(--lp-ease);
}
.input-wrap input:hover {
  border-color: rgba(0, 153, 68, 0.28);
  background: rgba(255, 255, 255, 0.9);
}
.input-wrap input:focus {
  border-color: #009944;
  background: #FFFFFF;
  box-shadow:
    0 0 0 4px rgba(0, 153, 68, 0.12),
    0 8px 24px -12px rgba(0, 153, 68, 0.35);
  transform: translateY(-1px);
  outline: none;
}
.input-wrap input:focus::placeholder { opacity: 0.5; }

/* Toggle password button */
.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
  padding: 6px;
  border-radius: 8px;
  transition: all var(--lp-dur-base) var(--lp-ease);
  z-index: 2;
}
.toggle-pass:hover {
  color: #009944;
  background: rgba(0, 153, 68, 0.08);
  transform: translateY(-50%) scale(1.1);
}
.toggle-pass:active { transform: translateY(-50%) scale(0.95); }

/* ---------- 4.4 Remember Me (Custom Checkbox) ---------- */
.form-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  transition: color var(--lp-dur-fast) var(--lp-ease);
}
.checkbox-label:hover { color: #0F172A; }

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 20px; height: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--lp-dur-base) var(--lp-ease-spring);
  flex-shrink: 0;
  background: #FFFFFF;
  position: relative;
}
.checkbox-label:hover .checkbox-custom {
  border-color: #009944;
  transform: scale(1.08);
}
.checkbox-label input:checked + .checkbox-custom {
  background: linear-gradient(135deg, #009944, #007A36);
  border-color: #009944;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 12px -2px rgba(0, 153, 68, 0.5);
  transform: scale(1.05);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #FFFFFF;
  font-size: 11px;
  animation: checkPop 0.35s var(--lp-ease-spring);
}
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------- 4.5 Login Button (Premium CTA) ---------- */
.btn-login {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, #009944 0%, #007A36 50%, #0059B8 100%);
  background-size: 200% 200%;
  color: #FFFFFF;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px -8px rgba(0, 153, 68, 0.55),
    0 4px 12px -4px rgba(0, 79, 163, 0.35);
  transition: all var(--lp-dur-base) var(--lp-ease);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  isolation: isolate;
  cursor: pointer;
  animation: buttonPulse 3.6s ease-in-out infinite;
}
@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -8px rgba(0,153,68,0.55), 0 4px 12px -4px rgba(0,79,163,0.35); }
  50%      { box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 32px -8px rgba(0,153,68,0.75), 0 6px 16px -4px rgba(0,79,163,0.5); }
}

/* Gradient shift on hover */
.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00B84F 0%, #008C3E 50%, #0076E0 100%);
  opacity: 0;
  transition: opacity var(--lp-dur-base) var(--lp-ease);
  z-index: -1;
}
.btn-login:hover::before { opacity: 1; }

/* Cursor-tracked radial glow */
.btn-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.28) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--lp-dur-base) var(--lp-ease);
  pointer-events: none;
  z-index: 1;
}
.btn-login:hover::after { opacity: 1; }

.btn-login:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 16px 40px -10px rgba(0, 153, 68, 0.75),
    0 8px 20px -6px rgba(0, 79, 163, 0.5);
  animation-play-state: paused;
}
.btn-login:active { transform: translateY(-1px) scale(0.99); }
.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.btn-text, .btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.btn-text i { transition: transform var(--lp-dur-base) var(--lp-ease-spring); }
.btn-login:hover .btn-text i { transform: translateX(3px); }

/* ---------- 4.6 Card Footer ---------- */
.login-card-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 0.72rem;
  color: #94A3B8;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  letter-spacing: 0.02em;
}

/* ============================================================
   5. LOGIN HINT (optional section)
   ============================================================ */
.login-hint {
  margin-top: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(232, 243, 255, 0.6), rgba(230, 247, 238, 0.5));
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.login-hint > p {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.hint-table { display: flex; flex-direction: column; gap: 8px; }
.hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: #475569;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all var(--lp-dur-base) var(--lp-ease);
  cursor: pointer;
}
.hint-row:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
  box-shadow: 0 4px 12px -4px rgba(0, 102, 204, 0.15);
}
.hint-role {
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 60px;
  text-align: center;
}
.hint-role.admin {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.16), rgba(0, 102, 204, 0.08));
  color: #004FA3;
  border: 1px solid rgba(0, 102, 204, 0.18);
}
.hint-role.petugas {
  background: linear-gradient(135deg, rgba(0, 153, 68, 0.16), rgba(0, 153, 68, 0.08));
  color: #007A36;
  border: 1px solid rgba(0, 153, 68, 0.18);
}

/* ============================================================
   6. GUEST CAPA LINK
   ============================================================ */
.guest-capa-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 102, 204, 0.15);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 252, 255, 0.9), rgba(238, 247, 255, 0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #075985;
  text-decoration: none;
  transition: all var(--lp-dur-base) var(--lp-ease);
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.04);
}
.guest-capa-link:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow:
    0 12px 28px -8px rgba(0, 94, 184, 0.22),
    0 4px 8px -2px rgba(0, 94, 184, 0.1);
}
.guest-capa-link > i:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #005EB8;
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 8px -2px rgba(0, 94, 184, 0.25);
  transition: transform var(--lp-dur-base) var(--lp-ease-spring);
}
.guest-capa-link:hover > i:first-child { transform: scale(1.08) rotate(-6deg); }
.guest-capa-link > i:last-child {
  margin-left: auto;
  color: #005EB8;
  transition: transform var(--lp-dur-base) var(--lp-ease-spring);
}
.guest-capa-link:hover > i:last-child { transform: translateX(4px); }
.guest-capa-link span { display: flex; flex-direction: column; gap: 2px; }
.guest-capa-link strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #075985;
}
.guest-capa-link small {
  font-size: 0.68rem;
  color: #64748B;
}

/* ============================================================
   7. TOAST (Premium styling)
   ============================================================ */
.toast {
  border-radius: 14px;
  padding: 15px 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 32px -8px rgba(0, 0, 0, 0.35);
}
.toast.success {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px -8px rgba(5, 150, 105, 0.5);
}
.toast.error {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px -8px rgba(220, 38, 38, 0.5);
}
.toast.info {
  background: linear-gradient(135deg, #0066CC, #004FA3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px -8px rgba(0, 102, 204, 0.5);
}
.toast.warning {
  background: linear-gradient(135deg, #D97706, #B45309);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px -8px rgba(217, 119, 6, 0.5);
}

/* ============================================================
   8. SHAKE ANIMATION (for login errors)
   ============================================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-10px) rotate(-0.6deg); }
  40%      { transform: translateX(10px) rotate(0.6deg); }
  60%      { transform: translateX(-6px) rotate(-0.3deg); }
  80%      { transform: translateX(6px) rotate(0.3deg); }
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .login-left { flex: 1; padding: 50px 40px; }
  .login-right { flex: 1; padding: 40px 32px; }
  .brand-title { font-size: 2.6rem; }
}

@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right {
    flex: 1;
    padding: 32px 20px;
    background:
      radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 153, 68, 0.10) 0%, transparent 60%),
      radial-gradient(ellipse 70% 50% at 85% 90%, rgba(0, 102, 204, 0.10) 0%, transparent 60%),
      linear-gradient(180deg, #FBFCFE 0%, #EEF2F8 100%);
  }
  .login-card {
    max-width: 460px;
    padding: 36px 28px 28px;
  }
}

@media (max-width: 480px) {
  .login-right { padding: 20px 14px; }
  .login-card { padding: 30px 22px 24px; border-radius: 20px; }
  .login-card-header h2 { font-size: 1.4rem; }
  .brand-title { font-size: 2.2rem; }
  .login-logo-wrap { width: 60px; height: 60px; }
  .login-logo-wrap i { font-size: 1.45rem; }
}

/* ============================================================
   10. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .login-left::before,
  .login-left::after,
  .brand-logo,
  .logo-circle,
  .brand-title,
  .brand-divider,
  .btn-login,
  .login-card,
  .login-card-header,
  .login-form {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid #009944;
  outline-offset: 3px;
  border-radius: 8px;
}
.input-wrap input:focus-visible { outline: none; }