/* ============================================================
   ROOT VARIABLES
============================================================ */
:root{
  --green-1:#05281f;
  --green-2:#0b3b2f;
  --blue-mid:#0a3d52;

  --gold:#e6c161;
  --gold-strong:#cfa246;
  --muted:#9fbfb0;
  --text:#e9f7f2;

  --ui-bg: rgba(8,36,31,0.55);
  --ui-border: rgba(212,160,23,0.08);
  --glass-shadow: 0 24px 80px rgba(0,0,0,0.55);

  --radius:16px;
}

/* Global */
html,body{
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--green-1), var(--green-2), var(--blue-mid));
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

/* ============================================================
   BACKGROUND
============================================================ */
.bg-wrap{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
}

.stars-layer{
  position:absolute;
  inset:0;
  overflow:hidden;
}

.star{
  position:absolute;
  border-radius:50%;
  background:white;
  box-shadow:0 0 6px rgba(255,255,255,0.35);
  animation: starTwinkle 5s infinite ease-in-out;
}
@keyframes starTwinkle{
  0%{opacity:.25;}
  50%{opacity:1;}
  100%{opacity:.25;}
}

.moon{
  position:absolute;
  right:4vw;
  top:4vh;
  width:80px;
  height:80px;
  border-radius:50%;
  background: radial-gradient(circle,#fff,#d8f1ff 60%,transparent);
  box-shadow:0 0 40px rgba(190,220,255,.45);
}

/* ============================================================
   LAYOUT
============================================================ */
.login-root{
  position:relative;
  z-index:5;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  padding-top:5vh;
}

/* Kaligrafi */
.kaligrafi-top{
  margin-bottom:24px;
}
.kaligrafi-img{
  width:240px;
  filter:drop-shadow(0 8px 32px rgba(255,255,200,0.2));
}
.glow-pulse{
  animation: kalGlow 5s ease-in-out infinite;
}
@keyframes kalGlow{
  0%{filter:drop-shadow(0 0 8px rgba(255,240,180,0.2));}
  50%{filter:drop-shadow(0 0 22px rgba(255,225,130,0.32));}
  100%{filter:drop-shadow(0 0 8px rgba(255,240,180,0.2));}
}

/* ============================================================
   LOGIN CARD
============================================================ */
.card-login{
  width:360px;
  background:var(--ui-bg);
  border:1px solid var(--ui-border);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(1.1);
  text-align:left;
}

.login-title{
  margin:0 0 16px 0;
  font-size:1.12rem;
  font-weight:600;
}

.label-small{
  display:block;
  font-size:.82rem;
  margin:10px 0 6px;
  opacity:.85;
}

/* Inputs */
.input-ghost{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:none;
  background:rgba(255,255,255,0.05);
  color:var(--text);
  box-shadow:inset 0 4px 14px rgba(0,0,0,0.35);
  font-size:.9rem;
  margin-bottom:10px;
}

/* Button */
.btn-gold{
  width:100%;
  padding:10px 0;
  margin-top:6px;
  border:none;
  border-radius:10px;
  background:linear-gradient(180deg,var(--gold),var(--gold-strong));
  color:#06251a;
  font-weight:600;
  cursor:pointer;
}

/* Copyright */
.copy-inside{
  margin-top:10px;
  display:block;
  text-align:center;
  font-size:.7rem;
  color:var(--muted);
  opacity:.55;
}

/* ============================================================
   FIREFLY FIELD (BOTTOM AREA)
============================================================ */
#fireflyField{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:30vh;
  pointer-events:none;
  z-index:4;
}

.particle{
  position:absolute;
  border-radius:50%;
  background: radial-gradient(circle,
    rgba(255,240,180,1),
    rgba(255,200,80,.5) 60%,
    transparent 100%);
  box-shadow:0 0 12px rgba(255,230,150,.9);
  animation: fireTwinkle 4s infinite ease-in-out;
}

@keyframes fireTwinkle{
  0%{transform:scale(.7); opacity:.6;}
  50%{transform:scale(1.2); opacity:1;}
  100%{transform:scale(.7); opacity:.6;}
}
