/* ==========================================================================
   LOGINPAGE 23 - CAMPUS SEKOLAH (Split-Screen Hero Slider + App Navigation)
   Khusus Sekolah / Lembaga Pendidikan (Tanpa Harga WiFi)
   ========================================================================== */
:root {
  --bg: #f4f7fb;
  --white: #ffffff;
  --navy: #1e3a8a;
  --navy-deep: #0f172a;
  --sky: #eff6ff;
  --gold: #f59e0b;
  --emerald: #10b981;
  --rose: #dc2626;
  --ink: #0f172a;
  --sub: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app-loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  transition: opacity 0.3s, visibility 0.3s;
}
#app-loader.fade-out { opacity: 0; visibility: hidden; }
.edu-spinner {
  width: 36px; height: 36px; border: 3px solid #dbeafe; border-top-color: var(--navy);
  border-radius: 50%; animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Split-Screen Layout */
.campus-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 860px) {
  .campus-layout {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }
}

/* Left Panel: Interactive Photo Slider */
.campus-hero {
  position: relative;
  width: 100%;
  height: 230px;
  background: var(--navy-deep);
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 860px) {
  .campus-hero {
    width: 54%;
    height: 100vh;
  }
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 6s ease;
  transform: scale(1.04);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.25) 45%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 2;
}

.hero-top-bar {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hero-brand-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.hero-brand-logo {
  width: 30px; height: 30px; border-radius: 50%; background: var(--sky);
  display: flex; align-items: center; justify-content: center;
}
.hero-brand-logo img { width: 20px; height: 20px; object-fit: contain; }
.hero-brand-name { font-size: 12.5px; font-weight: 800; color: var(--navy-deep); }

.hero-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 9999px;
  background: rgba(16, 185, 129, 0.22); border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px);
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.hero-caption-box {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 3;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hero-caption-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fcd34d; margin-bottom: 4px;
}
.hero-caption-title { font-size: 17px; font-weight: 800; line-height: 1.25; }
@media (min-width: 860px) {
  .hero-caption-box { left: 32px; right: 32px; bottom: 32px; }
  .hero-caption-title { font-size: 26px; }
}
.hero-dots { display: flex; gap: 6px; flex-shrink: 0; }
.hero-dot-btn {
  width: 22px; height: 5px; border-radius: 9999px; border: none;
  background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: all 0.25s;
}
.hero-dot-btn.active { width: 34px; background: #ffffff; }

/* Right Panel: App Workspace */
.campus-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  padding: 20px 18px 80px;
  overflow-y: auto;
}
@media (min-width: 860px) {
  .campus-workspace {
    padding: 32px 40px;
    justify-content: center;
  }
}
.workspace-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* App Navigation Switcher (Desktop top / Mobile bottom dock) */
.app-nav {
  position: fixed;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}
@media (min-width: 860px) {
  .app-nav {
    position: static;
    margin-bottom: 22px;
    box-shadow: none;
    background: var(--bg);
  }
}
.app-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 860px) {
  .app-nav-btn { flex-direction: row; gap: 7px; padding: 9px 8px; font-size: 12px; }
}
.app-nav-btn.active {
  background: var(--navy);
  color: #ffffff;
}

.view-pane { display: none; }
.view-pane.active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Auth Form */
.edu-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  background: var(--sky); color: var(--navy); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px;
}
.edu-hero-title { font-size: 21px; font-weight: 800; color: var(--navy-deep); margin-bottom: 4px; }
.edu-hero-sub { font-size: 12.5px; color: var(--sub); margin-bottom: 16px; }

.edu-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px;
}
.edu-tab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px; border: none; border-radius: 9px; background: transparent;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--sub); cursor: pointer;
}
.edu-tab-btn.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }

.edu-field { margin-bottom: 12px; }
.edu-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.edu-input-wrap { position: relative; display: flex; align-items: center; }
.edu-input-icon { position: absolute; left: 14px; color: var(--navy); font-size: 14px; pointer-events: none; }
.edu-input {
  width: 100%; height: 46px; padding: 0 42px 0 40px; border-radius: 10px;
  background: var(--bg); border: 1px solid #cbd5e1; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 600; outline: none;
}
.edu-input:focus { background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14); }
.edu-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; }

.btn-edu-primary {
  width: 100%; height: 46px; border: none; border-radius: 10px; background: var(--navy); color: #fff;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: 0 8px 18px -4px rgba(30, 58, 138, 0.35);
}
.btn-edu-primary:hover { background: #172554; }
.btn-edu-secondary {
  width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-edu-danger {
  width: 100%; height: 44px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: var(--rose);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.edu-scanner {
  background: var(--sky); border: 1px dashed #93c5fd; border-radius: 14px;
  padding: 18px; text-align: center; margin-bottom: 12px;
}
.edu-viewfinder {
  position: relative; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 14px;
  background: #fff; border: 1px solid #93c5fd; display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 26px; overflow: hidden;
}
.edu-laser { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--navy); animation: scanLine 2s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 52px; } }

.edu-error {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px;
  border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: var(--rose); font-size: 12px; font-weight: 600;
}

.edu-notice-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.edu-notice-list li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--sub);
  padding: 12px; background: var(--sky); border: 1px solid #dbeafe; border-radius: 12px;
}
.edu-notice-list i { color: var(--navy); margin-top: 2px; flex-shrink: 0; }

.edu-faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.edu-faq-btn {
  width: 100%; background: none; border: none; padding: 12px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--navy-deep); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.edu-faq-item.open .edu-faq-btn i { transform: rotate(180deg); }
.edu-faq-ans { display: none; padding: 0 14px 12px; font-size: 12px; color: var(--sub); }
.edu-faq-item.open .edu-faq-ans { display: block; }

.edu-meta-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
  font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; margin-top: 14px;
}
.edu-meta-row { display: flex; justify-content: space-between; align-items: center; }
.edu-meta-row span:first-child { color: var(--sub); display: inline-flex; align-items: center; gap: 6px; }
.edu-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }

/* Secondary Centered Pages */
.edu-shell { width: 100%; max-width: 460px; margin: 0 auto; padding: 20px 16px; }
.edu-shell.centered { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.edu-card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; box-shadow: 0 14px 30px -12px rgba(30, 58, 138, 0.14); }
.edu-topbar { background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%); color: #fff; padding: 16px; border-bottom: 3px solid var(--gold); }
.edu-topbar-inner { max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.edu-brand { display: flex; align-items: center; gap: 10px; }
.edu-logo { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; }
.edu-logo img { width: 24px; height: 24px; object-fit: contain; }
.edu-title { font-size: 15px; font-weight: 800; }
.edu-sub { font-size: 11px; color: #bfdbfe; }
.edu-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; background: rgba(255,255,255,0.16); font-size: 11px; font-weight: 700; }
