/* ==========================================================================
   SIMDIK — Login 11 (split banner + form)
   --------------------------------------------------------------------------
   Struktur & bahasa desain mengikuti login aplikasi siakad Pasone:
     - panel kiri 65%: foto sekolah + overlay warna + floating shapes + caption
     - panel kanan 35% (min 440px / max 520px): logo + judul + kartu form + footer
   Warna aksen mengikuti profil_warna sekolah (variabel --lg11-* dari view).

   Semua selector ber-prefix `lg11-` (tanpa nama proyek lain).
   Responsif: <480, <768, <960 (banner disembunyikan), >=1366, >=1600, >=1920.
   ========================================================================== */

:root {
  --lg11-primary: #22924b;
  --lg11-primary-hover: #1a6f39;
  --lg11-overlay: linear-gradient(135deg, rgba(34, 146, 75, .84) 0%, rgba(34, 146, 75, .70) 100%);
  --lg11-text: #1f2937;
  --lg11-muted: #6b7280;
  --lg11-border: #e5e7eb;
  --lg11-radius-sm: 6px;
  --lg11-radius-md: 10px;
  --lg11-radius-lg: 16px;
  --lg11-transition: all .2s ease-in-out;
}

* { box-sizing: border-box; }

html, body.lg11-page {
  height: 100%;
}

body.lg11-page {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--lg11-text);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ---------- layout ---------- */
.lg11-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------- panel kiri ---------- */
.lg11-banner {
  flex: 1 1 65%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(135deg, #153a6e 0%, #1e5aa8 55%, #2f7fd0 100%);
  background-size: cover;
  background-position: center center;
}

.lg11-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lg11-overlay);
  z-index: 1;
}

.lg11-caption {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 560px;
}

.lg11-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.lg11-caption h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.lg11-caption p {
  font-size: 14px;
  opacity: .92;
  margin: 0;
}

/* shapes animasi */
.lg11-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.lg11-shape {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 24%;
  bottom: -150px;
  animation: lg11Float 20s infinite linear;
}

.lg11-s1 { width: 95px;  height: 95px;  left: 10%; animation-duration: 16s; animation-delay: 0s; }
.lg11-s2 { width: 55px;  height: 55px;  left: 26%; animation-duration: 22s; animation-delay: 3s; }
.lg11-s3 { width: 130px; height: 130px; left: 45%; animation-duration: 26s; animation-delay: 1s; }
.lg11-s4 { width: 70px;  height: 70px;  left: 68%; animation-duration: 18s; animation-delay: 5s; }
.lg11-s5 { width: 110px; height: 110px; left: 84%; animation-duration: 24s; animation-delay: 2s; }
.lg11-s6 { width: 45px;  height: 45px;  left: 18%; animation-duration: 19s; animation-delay: 8s; }
.lg11-s7 { width: 80px;  height: 80px;  left: 56%; animation-duration: 21s; animation-delay: 11s; }
.lg11-s8 { width: 120px; height: 120px; left: 34%; animation-duration: 28s; animation-delay: 14s; }
.lg11-s9 { width: 60px;  height: 60px;  left: 76%; animation-duration: 17s; animation-delay: 7s; }

@keyframes lg11Float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .65; }
  85%  { opacity: .65; }
  100% { transform: translateY(-125vh) rotate(540deg); opacity: 0; }
}

/* ---------- panel kanan ---------- */
.lg11-form-col {
  flex: 1 1 35%;
  min-width: 440px;
  max-width: 520px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  z-index: 10;
}

.lg11-toplogos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lg11-logo-img {
  max-height: 44px;
  max-width: 44px;
  border-radius: 10px;
  object-fit: contain;
}

.lg11-appname {
  font-weight: 800;
  font-size: 16px;
  color: var(--lg11-primary);
  letter-spacing: -.3px;
}

.lg11-titlegroup {
  text-align: center;
  margin-bottom: 24px;
}

.lg11-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--lg11-primary);
  letter-spacing: -.3px;
  margin: 0 0 3px;
}

.lg11-subtitle {
  font-size: 13px;
  color: var(--lg11-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.lg11-pill {
  display: inline-block;
  background: rgba(34, 146, 75, .10);
  color: var(--lg11-primary);
  border: 1px solid rgba(34, 146, 75, .30);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
}

/* kartu form */
.lg11-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--lg11-border);
  border-radius: var(--lg11-radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .04);
}

.lg11-group {
  margin-bottom: 16px;
}

.lg11-group > label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.lg11-field {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--lg11-border);
  border-radius: var(--lg11-radius-md);
  overflow: hidden;
  transition: var(--lg11-transition);
}

.lg11-field:focus-within {
  border-color: var(--lg11-primary);
  box-shadow: 0 0 0 3px rgba(34, 146, 75, .12);
}

.lg11-addon {
  padding: 10px 14px;
  color: #9ca3af;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #f3f4f6;
  background: #f9fafb;
  flex: 0 0 auto;
}

.lg11-field input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--lg11-text);
  background: transparent;
  box-sizing: border-box;
}

.lg11-field input::placeholder { color: #9ca3af; }

.lg11-eye {
  padding: 10px 14px;
  background: transparent;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.lg11-eye:hover { color: #4b5563; }

/* captcha */
.lg11-captcha {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.lg11-captcha-img {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--lg11-radius-md);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* ingat saya */
.lg11-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lg11-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.lg11-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--lg11-primary);
  cursor: pointer;
}

.lg11-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--lg11-primary);
}

/* tombol */
.lg11-submit {
  width: 100%;
  background: var(--lg11-primary);
  color: #fff;
  border: 0;
  border-radius: var(--lg11-radius-md);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--lg11-transition);
  box-shadow: 0 4px 10px rgba(34, 146, 75, .25);
}

.lg11-submit:hover {
  background: var(--lg11-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(34, 146, 75, .32);
}

.lg11-submit:active { transform: translateY(0); }

.lg11-back {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lg11-muted);
}

.lg11-back:hover { color: var(--lg11-primary); text-decoration: underline; }

/* alert */
.lg11-alert {
  border-radius: var(--lg11-radius-md);
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.lg11-alert.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.lg11-alert.is-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.lg11-alert .lg11-alert-icon { font-size: 16px; margin-top: 1px; flex: 0 0 auto; }
.lg11-alert .lg11-alert-text { flex: 1; font-weight: 500; }

.lg11-footer {
  text-align: center;
  width: 100%;
  font-size: 11.5px;
  color: #9ca3af;
}

/* ==========================================================================
   RESPONSIF
   ========================================================================== */

/* Tablet & mobile: banner disembunyikan, form di tengah */
@media (max-width: 959.98px) {
  .lg11-banner { display: none; }
  .lg11-form-col {
    flex: 1;
    max-width: 100%;
    min-width: 100%;
    padding: 30px 20px;
    justify-content: center;
  }
  .lg11-card { max-width: 440px; margin-left: auto; margin-right: auto; }
  .lg11-titlegroup { margin-bottom: 20px; }
  .lg11-footer { margin-top: 18px; }
}

@media (max-width: 575.98px) {
  .lg11-form-col { padding: 22px 16px; justify-content: flex-start; }
  .lg11-card { padding: 22px 18px; border-radius: 14px; }
  .lg11-title { font-size: 19px; }
  .lg11-captcha { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 399.98px) {
  .lg11-captcha { grid-template-columns: 84px minmax(0, 1fr); }
  .lg11-appname { font-size: 15px; }
}

/* Desktop 1366x768 ke atas: proporsi banner sedikit lebih lebar */
@media (min-width: 1366px) {
  .lg11-banner { flex-basis: 66%; }
  .lg11-caption h1 { font-size: 32px; }
}

@media (min-width: 1600px) {
  .lg11-form-col { min-width: 480px; max-width: 560px; padding: 48px 56px; }
  .lg11-caption h1 { font-size: 34px; }
  .lg11-card { padding: 30px 26px; }
}

@media (min-width: 1920px) {
  .lg11-caption { max-width: 640px; }
  .lg11-caption h1 { font-size: 38px; }
  .lg11-caption p { font-size: 15px; }
  .lg11-form-col { min-width: 520px; max-width: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg11-shape { animation: none; display: none; }
  .lg11-submit { transition: none; }
}
