/* ==========================================================================
   PORTAL MGMP WILAYAH II JAKARTA UTARA - PUBLIC DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #047857;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --accent-light: #eff6ff;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface: #ffffff;
  --background: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(4, 120, 87, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- PUBLIC HEADER IMAGE BANNER ABOVE MENU --- */
.public-header-image-container {
  width: 100%;
  background: #0f172a;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--primary);
}

.public-header-image-container a {
  display: block;
  width: 100%;
}

.public-header-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.public-header-image-container:hover .public-header-image {
  transform: scale(1.01);
}

@media (max-width: 768px) {
  .public-header-image {
    max-height: 140px;
  }
}

/* --- DYNAMIC HEADER BANNER ABOVE MENU --- */
.dynamic-header-banner {
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.dynamic-header-banner.theme-emerald {
  background: linear-gradient(90deg, #064e3b 0%, #047857 50%, #059669 100%);
}

.dynamic-header-banner.theme-indigo {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}

.dynamic-header-banner.theme-amber {
  background: linear-gradient(90deg, #78350f 0%, #b45309 50%, #d97706 100%);
}

.dynamic-header-banner.theme-dark {
  background: linear-gradient(90deg, #090d16 0%, #0f172a 50%, #1e293b 100%);
}

.banner-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.banner-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.marquee-box {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marqueeScroll 22s linear infinite;
  color: #ffffff;
  font-weight: 600;
}

.dynamic-header-banner:hover .marquee-text {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.banner-link {
  color: #6ee7b7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-link:hover {
  background: white;
  color: var(--secondary);
}

.banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  padding: 0 5px;
}

.banner-close:hover { opacity: 1; }

/* --- TOPBAR --- */
.topbar {
  background: var(--secondary);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
  gap: 20px;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-auth {
  display: flex;
  gap: 15px;
}

.topbar-auth a {
  color: #e2e8f0;
  font-weight: 500;
}

.topbar-auth a:hover {
  color: #34d399;
}

/* --- HEADER / NAVBAR --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), #10b981);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 50%, #047857 100%);
  color: white;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6ee7b7;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: white;
  color: var(--secondary);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.glass-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.glass-stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.glass-stat-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #34d399;
}

.glass-stat-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 70px 20px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
}

/* --- CARDS & GRID --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(5px);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* --- MAPEL FILTER SELECTOR --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

/* --- FOOTER --- */
.footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 70px 20px 30px 20px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #34d399;
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* --- ALERTS --- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}

/* --- FULL SCREEN LOGIN SPLIT LAYOUT (MATCHING REFERENCE IMAGE) --- */
.full-split-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.split-left-hero {
  flex: 1.35;
  color: white;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Translucent Decorative Circles */
.split-left-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.split-left-hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.split-left-hero.hero-pengurus {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #0f172a 100%);
}

.split-left-hero.hero-admin {
  background: linear-gradient(135deg, #5b50e6 0%, #4f46e5 50%, #312e81 100%);
}

.split-left-hero.hero-portal {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #0f172a 100%);
}

.hero-brand-logo {
  width: 75px;
  height: 75px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: white;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hero-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-sub-title {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 25px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 90%;
  margin-bottom: 40px;
}

.hero-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-contact-item i {
  font-size: 1.2rem;
  opacity: 0.85;
}

.split-right-form {
  flex: 1;
  background: #ffffff;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 440px;
}

.login-form-body {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.form-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 35px;
}

.input-icon-group {
  position: relative;
}

.input-icon-group i.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
}

.input-icon-group .form-control {
  padding-left: 48px;
  padding-right: 45px;
  height: 50px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.input-icon-group .form-control:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.toggle-password-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.2rem;
}

.btn-login-submit {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-login-pengurus {
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
}

.btn-login-pengurus:hover {
  box-shadow: 0 14px 28px rgba(4, 120, 87, 0.4);
  transform: translateY(-2px);
}

.btn-login-admin {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
}

.btn-login-admin:hover {
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Demo Credentials Box */
.demo-credentials-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  margin-top: 30px;
}

.demo-credentials-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-cred-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.demo-cred-card h5 {
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

.demo-cred-card p {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.3;
}

/* Responsive Split Screen */
@media (max-width: 900px) {
  .full-split-wrapper {
    flex-direction: column;
  }
  .split-left-hero {
    padding: 40px 25px;
  }
  .split-right-form {
    padding: 40px 25px;
    min-width: 100%;
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 30px auto; }
  .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-info { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 30px;
    transition: var(--transition);
    align-items: flex-start;
  }
  .nav-menu.active { left: 0; }
  .nav-link { width: 100%; padding: 12px; font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
