*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Poppins", sans-serif;
}

body{
  background:#f8fafc;
  color:#0f172a;
}

/* container */
.container{
  width:85%;
  max-width:1200px;
  margin:auto;
}

/* top navbar */
.topbar{
  background:#1e4fa8;
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:999;
}

.topbar-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:white;
  text-decoration:none;
}

.brand-logo{
  width:45px;
  height:45px;
  border-radius:12px;
  background:white;
  display:flex;
  justify-content:center;
  align-items:center;
  color:#1e4fa8;
  font-weight:800;
  font-size:18px;
}

.brand-text h3{
  font-size:20px;
  line-height:1.1;
}

.brand-text small{
  font-size:12px;
  opacity:0.85;
}

/* menu */
.menu{
  display:flex;
  gap:20px;
}

.menu a{
  color:white;
  text-decoration:none;
  font-size:14px;
  opacity:0.9;
}

.menu a:hover{
  opacity:1;
}

/* actions */
.nav-actions{
  display:flex;
  gap:12px;
}

.btn{
  padding:10px 16px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  display:inline-block;
}

.btn-outline{
  border:2px solid rgba(255,255,255,0.7);
  color:white;
}

.btn-outline:hover{
  background:rgba(255,255,255,0.15);
}

.btn-yellow{
  background:#fbbf24;
  color:#1e293b;
}

.btn-yellow:hover{
  background:#f59e0b;
}

/* hero title */
.hero-title{
  background:#1e4fa8;
  padding:70px 0;
}

.hero-title h2{
  text-align:center;
  font-size:clamp(28px, 4vw, 46px);
  font-weight:800;
  color:white;
}

/* login section */
.content{
  padding:60px 0;
  display:flex;
  justify-content:center;
}

.login-card{
  width:100%;
  max-width:520px;
  background:white;
  border-radius:18px;
  padding:35px;
  border:1px solid #e5e7eb;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
  text-align:center;
}

.login-card h2{
  font-size:26px;
  font-weight:800;
  margin-bottom:8px;
}

.login-card p{
  color:#64748b;
  font-size:14px;
  margin-bottom:22px;
}

/* error */
.error{
  background:#ffe6e6;
  border:1px solid #ffb3b3;
  color:#cc0000;
  padding:10px;
  border-radius:12px;
  font-size:13px;
  text-align:center;
  margin-bottom:15px;
}

/* input */
.input-group{
  display:flex;
  align-items:center;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:14px;
  background:#f8fafc;
}

.input-group i{
  color:#64748b;
  font-size:15px;
  width:18px;
}

.input-group input{
  border:none;
  outline:none;
  width:100%;
  background:transparent;
  font-size:14px;
  padding-left:10px;
}

.toggle-pass{
  cursor:pointer;
  opacity:0.7;
}

.toggle-pass:hover{
  opacity:1;
}

/* button */
.btn-login{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  background:#1e4fa8;
  color:white;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 12px 25px rgba(30,79,168,0.25);
}

.btn-login:hover{
  background:#163d86;
}

/* links */
.info-link{
  display:block;
  margin:10px 0 18px;
  font-size:14px;
  text-decoration:none;
  color:#2563eb;
  font-weight:600;
}

.info-link:hover{
  text-decoration:underline;
}

.register-link{
  margin-top:14px;
  text-align:center;
  font-size:13px;
  color:#555;
}

.register-link a{
  font-weight:700;
  text-decoration:none;
  color:#2563eb;
}

.register-link a:hover{
  text-decoration:underline;
}

/* floating pengaduan */
.pengaduan{
  position:fixed;
  right:20px;
  bottom:20px;
  display:flex;
  align-items:flex-end;
  gap:10px;
  z-index:9999;
}

.pengaduan-box{
  background:white;
  border-radius:12px;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.pengaduan-box small{
  display:block;
  font-size:12px;
  color:#64748b;
}

.pengaduan-box strong{
  display:block;
  font-size:14px;
  color:#0f172a;
}

.pengaduan-icon{
  width:55px;
  height:55px;
  border-radius:50%;
  background:#2563eb;
  display:flex;
  justify-content:center;
  align-items:center;
  color:white;
  font-size:22px;
  box-shadow:0 12px 25px rgba(0,0,0,0.18);
}

/* responsive */
@media(max-width:950px){
  .menu{
    display:none;
  }

  .hero-title h1{
    font-size:38px;
  }
}

@media(max-width:600px){
  .btn{
    padding:9px 12px;
    font-size:13px;
  }

  .hero-title{
    padding:50px 0;
  }

  .hero-title h1{
    font-size:30px;
  }

  .login-card{
    padding:25px;
    margin:0 10px;
  }
}
/* ===========================
   MOBILE NAVBAR
=========================== */
.nav-toggle{
  display:none;
  border:none;
  background:rgba(255,255,255,0.15);
  color:white;
  font-size:18px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

.nav-toggle:hover{
  background:rgba(255,255,255,0.22);
}

@media(max-width:950px){
  .nav-toggle{
    display:block;
  }

  .menu{
    display:none;
    position:absolute;
    top:78px;
    left:0;
    right:0;
    background:#1e4fa8;
    flex-direction:column;
    padding:16px;
    gap:12px;
    border-top:1px solid rgba(255,255,255,0.15);
  }

  .menu.active{
    display:flex;
  }

  .menu a{
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,0.10);
  }

  .menu a:hover{
    background:rgba(255,255,255,0.18);
  }

  .topbar-wrap{
    position:relative;
  }
}

/* ===========================
   ANIMASI CARD
=========================== */
.login-card{
  animation: fadeUp 0.6s ease-in-out;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* FIX LINK PENGADUAN */
.pengaduan{
  text-decoration:none;
}
.topbar{
  background:#1e4fa8 !important;
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}
.hero-title{
  background:#1e4fa8;
  padding:70px 0;
  position:relative;
  overflow:hidden;
}

/* grid garis putih */
.hero-title::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size:80px 80px;
  z-index:0;
}

.hero-title h1{
  position:relative;
  z-index:1;
}
.topbar-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* menu di kanan sebelum tombol registrasi */
.menu{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:18px;
}

/* biar tombol registrasi tetap di paling kanan */
.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
/* ===== DEFAULT NAV DESKTOP ===== */
.menu {
  display: flex;
  gap: 20px;
}

/* ===== DESKTOP ===== */
.menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {

  .menu {
    display: flex !important;
    position: static;
    padding: 0;
  }

  .menu a {
    padding: 6px;
  }
}