/* ================= GLOBAL ================= */
html, body{
  overflow-x:hidden;
  max-width:100%;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* ================= BACKGROUND ================= */
.hero-bg, .bg{
  min-height:100vh;
  background:url('https://masembajaya.com/tcm/assets/img/bg-sekolah.png') no-repeat center;
  background-size:cover;
  position:relative;
  overflow:hidden;
}

/* KHUSUS BG REGISTER */
.bg{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* ================= OVERLAY ================= */

/* HERO tetap terang */
.hero-bg::after{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(255,255,255,0.75);
  z-index:1;
  pointer-events:none;
}

/* REGISTER dibuat lebih ringan */
.bg::after{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(255,255,255,0.35); /* 🔥 lebih jernih */
  z-index:1;
  pointer-events:none;
}

/* ================= HEADER ================= */
.header{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 20px;
  z-index:2;
}

.header img{height:45px;}

.left, .right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.title{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.title img{height:60px;}

.tagline-hero{
  font-family:'Playfair Display', serif;
  font-size:30px;
  font-style:italic;
  color:#c59d00;
  margin-top:4px;
  text-align:center;
}

/* ================= HERO ================= */
.hero{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:30px;
  padding:120px 15px 40px;
  width:100%;
}

.hero-text{
  max-width:420px;
  text-align:left;
  background:rgba(255,255,255,0.6);
  padding:20px;
  border-radius:15px;
  backdrop-filter:blur(6px);
}

.hero-text h1{
  font-size:26px;
  color:#1b4332;
  margin-bottom:10px;
}

.hero-text p{
  font-size:14px;
  color:#333;
  line-height:1.6;
  margin-bottom:20px;
}

/* ================= BUTTON ================= */
.btn{
  padding:10px 16px;
  border-radius:25px;
  text-decoration:none;
  font-size:14px;
  display:inline-block;
  margin:5px;
}

.btn-primary{
  background:#2d6a4f;
  color:#fff;
}

.btn-outline{
  border:2px solid #2d6a4f;
  color:#1b4332;
  background:rgba(255,255,255,0.8);
}

.btn-outline:hover{
  background:#2d6a4f;
  color:#fff;
}

/* ================= ILUSTRASI ================= */
.hero-art{
  width:260px;
  display:flex;
  justify-content:center;
}

.hero-art img{
  width:100%;
  max-width:260px;
}

/* ================= LOGIN ================= */
.login-box{
  background:rgba(255,255,255,0.9);
  padding:20px;
  border-radius:15px;
  width:260px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* ================= FORM ================= */
input, select, textarea{
  width:100%;
  padding:10px;
  margin:6px 0;
  border-radius:10px;
  border:1px solid #ccc;
  background:#fff;
}

/* ================= REGISTER (FIX UTAMA) ================= */
.register-box{
  background:#ffffff; /* 🔥 solid biar tidak samar */
  padding:25px;
  border-radius:20px;
  max-width:420px;
  width:100%;
  box-shadow:0 15px 35px rgba(0,0,0,0.2);
  text-align:center;
  position:relative;
  z-index:2;
}

/* ================= FEATURES ================= */
.features{
  padding:30px 15px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:15px;
  max-width:1000px;
  margin:auto;
}

.card{
  background:rgba(255,255,255,0.95);
  padding:18px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  text-align:center;
}

/* ================= FOOTER ================= */
.footer{
  text-align:center;
  font-size:12px;
  padding:20px;
  color:#555;
}

/* ================= DASHBOARD ================= */
body.dashboard{
  display:flex;
  background:#f4f7fa;
}

.dashboard .sidebar{
  width:230px;
  background:#1b4332;
  color:#fff;
  height:100vh;
  position:fixed;
}

.dashboard .main{
  margin-left:230px;
  width:100%;
  padding-top:60px;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .hero{
    flex-direction:column;
    padding-top:160px;
    text-align:center;
  }

  .login-box{
    width:90%;
    max-width:320px;
  }

}