/* GezyLogin — gaya global.
   Palet Gezy: navy #1e3a5f, emas #d4a017, kartu putih, ramah HP.
   Halaman login meniru TATA LETAK e-Rapor SMP (split kiri-kanan di
   bawah top bar): banner ~68% / panel login ~32%. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eef2f7;
  color: #212529;
  min-height: 100vh;
}
a { color: #1e3a5f; }
.muted { color: #6c757d; }

/* ---------- Top bar (full-width, navy solid, ~62px) ---------- */
.topbar {
  height: 62px;
  background: #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-round {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #d4a017;
  color: #1e3a5f;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.topbar-wordmark { font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.topbar-nav { display: flex; align-items: center; gap: 18px; }
.topbar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-nav a:hover { color: #d4a017; }

/* ---------- Login split (ala e-Rapor) ---------- */
.login-page { display: flex; flex-direction: column; min-height: 100vh; }
.login-split {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 62px - 36px);
}
.login-banner {
  flex: 0 0 68%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #dbeafe 0%, #e7e9f7 55%, #e9e4f5 100%);
  overflow: hidden;
}
.banner-strip {
  background: #1e3a5f;
  color: #fff;
  padding: 10px 28px;
  font-size: 13px;
  letter-spacing: .3px;
}
.banner-strip-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.banner-social { display: inline-flex; gap: 12px; opacity: .9; }
.banner-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 44px;
}
.banner-title {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.05;
  font-weight: 800;
  color: #1e3a5f;
}
.banner-pill {
  display: inline-block;
  margin: 0 0 26px;
  background: #fff;
  color: #1e3a5f;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 19px);
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, .15);
}
.banner-version {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 800;
  color: #1e3a5f;
}
.banner-version::before { content: "Versi "; font-size: .55em; font-weight: 700; color: #d4a017; }
.banner-figure { flex: 0 0 auto; }
.hero-illustration { width: clamp(200px, 22vw, 300px); height: auto; display: block; }

.login-panel {
  flex: 0 0 32%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(30, 58, 95, .10);
  display: flex;
  align-items: center;
  padding: 36px 30px;
}
.login-panel-inner { width: 100%; max-width: 420px; margin: 0 auto; }
.form-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-size: 13px;
  text-align: center;
  margin: 0 0 22px;
}
.rule { flex: 1; height: 1px; background: #dee2e6; }
.login-form { width: 100%; }
.field-row { display: flex; margin-bottom: 14px; position: relative; }
.field-chip {
  flex: 0 0 34%;
  background: #e9ecef;
  color: #495057;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  border-right: none;
  border-radius: 8px 0 0 8px;
  min-height: 44px;
}
.field-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dee2e6;
  border-radius: 0 8px 8px 0;
  padding: 11px 12px;
  font-size: 15px;
  background: #fff;
  color: #212529;
}
.field-input:focus { outline: 2px solid #d4a017; outline-offset: -1px; border-color: #d4a017; }
.field-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 8px;
}
.field-row .field-input[type="password"] { padding-right: 86px; }
.field-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #dee2e6;
  border-radius: 0 8px 8px 0;
  background: #f8f9fa;
  font-weight: 600;
  color: #1e3a5f;
  font-size: 15px;
}
.form-links { text-align: right; margin: 2px 0 16px; font-size: 14px; }
.form-links a { color: #1e3a5f; text-decoration: none; }
.form-links a:hover { text-decoration: underline; }
.btn-submit {
  width: 100%;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.btn-submit:hover { background: #16324f; }
.btn-submit svg { flex: 0 0 auto; }
.form-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-size: 12.5px;
  text-align: center;
  margin: 18px 0 0;
}
.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.alert-error { background: #fdecea; color: #8b1e1e; border: 1px solid #f5c6cb; }
.alert-warn { background: #fff8e1; color: #6d4c00; border: 1px solid #ffe082; }

/* ---------- Footer baku GezyTech ---------- */
.site-footer {
  background: #16324f;
  color: #cfd8e3;
  text-align: center;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Portal & aplikasi ---------- */
.app-main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
.app-user { color: #495057; margin: 4px 0 18px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.app-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 12px 16px;
  text-align: center;
  text-decoration: none;
  color: #1e3a5f;
  box-shadow: 0 2px 10px rgba(30, 58, 95, .10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.app-card:hover { box-shadow: 0 6px 18px rgba(30, 58, 95, .18); }
.app-icon { font-size: 40px; line-height: 1; }
.app-name { font-weight: 700; font-size: 15px; }
.app-note { font-size: 11.5px; color: #6c757d; }
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9ecef;
  color: #495057;
}
.badge-ok { background: #d4edda; color: #155724; }
.badge-warn { background: #fff3cd; color: #856404; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, .08);
  margin-bottom: 16px;
}
.btn {
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: #16324f; }
.btn-danger { background: #a61e1e; }
.btn-gold { background: #d4a017; color: #1e3a5f; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid #dee2e6; padding: 8px; text-align: left; vertical-align: top; }
th { background: #e9ecef; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #dee2e6; border-radius: 8px; }
label { font-size: 13px; color: #495057; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button {
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}
.tabs button.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

/* ---------- Responsif (HP) ---------- */
@media (max-width: 1100px) {
  .banner-main { padding: 28px; }
  .hero-illustration { width: 200px; }
}
@media (max-width: 860px) {
  .login-split { flex-direction: column; min-height: 0; }
  .login-banner { flex: none; }
  .banner-main { padding: 22px 20px; }
  .banner-title { font-size: 38px; margin-bottom: 10px; }
  .banner-pill { font-size: 14px; margin-bottom: 12px; }
  .banner-version { font-size: 26px; }
  .banner-figure { display: none; }
  .login-panel { flex: none; width: 100%; padding: 26px 18px 30px; box-shadow: none; }
  .topbar { padding: 0 14px; }
  .topbar-nav a span { display: none; }
  .topbar-nav a:first-child span { display: inline; }
  .field-chip { flex-basis: 30%; font-size: 13px; }
}
