/* Halaman login CMS RSUD Kepulauan Seribu */
.login-body { background: #17304f; }
.login-latar {
  --biru: #234974; --biru-tua: #17304f; --biru-muda: #e8f0f5; --kuning: #47a88e; --kuning-tua: #368a73;
  --teks: #2b3a4d; --redup: #5f6b86; --garis: #d8e4ea;
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(71, 168, 142, .30), transparent 60%),
    radial-gradient(800px 560px at 92% 96%, rgba(71, 168, 142, .30), transparent 62%),
    linear-gradient(135deg, #17304f 0%, #234974 52%, #2f6f8a 100%);
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.login-latar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1.3px, transparent 1.6px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.lg-bulat { position: absolute; border-radius: 50%; pointer-events: none; }
.lg-b1 { width: 360px; height: 360px; left: -120px; bottom: -140px; background: rgba(71, 168, 142, .16); animation: lg-ambang 9s ease-in-out infinite; }
.lg-b2 { width: 220px; height: 220px; right: 8%; top: -90px; background: rgba(255, 255, 255, .09); animation: lg-ambang 11s ease-in-out infinite reverse; }
.lg-b3 { width: 90px; height: 90px; left: 6%; top: 14%; border: 14px solid rgba(71, 168, 142, .25); background: transparent; animation: lg-ambang 7s ease-in-out infinite; }
@keyframes lg-ambang { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.lg-kartu {
  position: relative; z-index: 1; width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(10, 25, 45, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  animation: lg-muncul .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lg-muncul { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- panel merek (kiri) ---------- */
.lg-merek {
  position: relative; overflow: hidden; color: #fff; padding: 46px 40px 0; display: flex; flex-direction: column; justify-content: space-between; min-height: 690px;
  background:
    radial-gradient(420px 300px at 85% 12%, rgba(71, 168, 142, .30), transparent 65%),
    linear-gradient(160deg, #234974 0%, #17304f 100%);
}
.lg-merek::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.lg-merek-isi { position: relative; z-index: 2; }
.lg-lencana { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); color: #fff; }
.lg-lencana svg { color: var(--kuning); }
.lg-merek h2 { margin: 20px 0 14px; color: #fff; font-size: 30px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
.lg-merek h2 span { color: var(--kuning); }
.lg-merek p { margin: 0 0 22px; max-width: 330px; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.lg-poin { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lg-poin li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .95); }
.lg-poin i { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--biru-tua); background: var(--kuning); }
.lg-maskot { position: absolute; z-index: 1; right: 26px; bottom: 0; width: 200px; filter: drop-shadow(0 18px 24px rgba(10, 25, 45, .45)); animation: lg-ambang 6s ease-in-out infinite; }

/* ---------- panel formulir (kanan) ---------- */
.lg-form { display: flex; flex-direction: column; justify-content: center; padding: 44px 46px 26px; }
.lg-kepala { text-align: center; margin-bottom: 26px; }
.lg-logo { height: 92px; width: auto; margin-bottom: 16px; }
.lg-kepala h1 { margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--teks); }
.lg-kepala p { margin: 0; font-size: 14px; color: var(--redup); }
.lg-alert { border-radius: 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; padding: 11px 14px; }

.lg-baris { margin-bottom: 18px; }
.lg-baris label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--teks); }
.lg-input { position: relative; }
.lg-input input {
  width: 100%; height: 52px; padding: 0 48px 0 46px; border-radius: 14px; border: 1.5px solid var(--garis); background: #f5f9fa;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--teks); transition: border-color .18s, box-shadow .18s, background .18s;
}
.lg-input input::placeholder { color: #7b8a9c; font-weight: 400; }
.lg-input input:hover { border-color: #c2d6de; }
.lg-input input:focus { outline: none; background: #fff; border-color: var(--biru); box-shadow: 0 0 0 4px rgba(35, 73, 116, .14); }
.lg-ikon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7b8a9c; pointer-events: none; transition: color .18s; }
.lg-input:focus-within .lg-ikon { color: var(--biru); }
.lg-mata { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #7b8a9c; cursor: pointer; transition: background .15s, color .15s; }
.lg-mata:hover { background: var(--biru-muda); color: var(--biru); }
.lg-mata .m-tutup { display: none; }
.lg-mata.aktif .m-tutup { display: block; }
.lg-mata.aktif .m-buka { display: none; }
.lg-mata.aktif { color: var(--biru); }
.lg-caps { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #b36b00; background: #fff3cf; border-radius: 9px; padding: 6px 10px; }
.lg-caps[hidden] { display: none; }

.lg-captcha { display: grid; grid-template-columns: 1fr 112px; gap: 10px; align-items: stretch; }
.lg-soal { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 8px 0 14px; min-height: 52px; border-radius: 14px; background: var(--biru-muda); border: 1.5px dashed #b9d3dd; font-size: 13px; color: var(--redup); }
.lg-soal strong { font-size: 18px; font-weight: 800; letter-spacing: .02em; color: var(--biru); white-space: nowrap; }
.lg-segar { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: #fff; color: var(--biru); cursor: pointer; box-shadow: 0 2px 6px rgba(23, 48, 79, .12); transition: background .15s, transform .15s; }
.lg-segar:hover { background: var(--kuning); color: #ffffff; }
.lg-segar.berputar svg { animation: lg-putar .45s linear; }
.lg-jawab { width: 100%; height: 52px; padding: 0 12px; text-align: center; border-radius: 14px; border: 1.5px solid var(--garis); background: #f5f9fa; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--teks); transition: border-color .18s, box-shadow .18s, background .18s; }
.lg-jawab::placeholder { color: #7b8a9c; font-size: 14px; font-weight: 400; }
.lg-jawab:hover { border-color: #c2d6de; }
.lg-jawab:focus { outline: none; background: #fff; border-color: var(--biru); box-shadow: 0 0 0 4px rgba(35, 73, 116, .14); }
@media (max-width: 400px) { .lg-captcha { grid-template-columns: 1fr; } }
.lg-tombol {
  position: relative; width: 100%; height: 54px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 15px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1; color: #ffffff; letter-spacing: .01em;
  background: linear-gradient(180deg, #5bb89d 0%, var(--kuning) 100%); box-shadow: 0 12px 26px rgba(54, 138, 115, .42), inset 0 -2px 0 rgba(0, 0, 0, .08);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.lg-tombol:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(54, 138, 115, .52), inset 0 -2px 0 rgba(0, 0, 0, .08); filter: brightness(1.03); }
.lg-tombol:active { transform: translateY(0); }
.lg-tombol:focus-visible { outline: 3px solid rgba(35, 73, 116, .45); outline-offset: 3px; }
.lg-panah { transition: transform .18s; }
.lg-tombol:hover .lg-panah { transform: translateX(4px); }
.lg-putar { display: none; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #ffffff; animation: lg-putar .8s linear infinite; }
.lg-tombol.memproses { pointer-events: none; filter: saturate(.8); }
.lg-tombol.memproses .lg-tulisan, .lg-tombol.memproses .lg-panah { opacity: 0; }
.lg-tombol.memproses .lg-putar { display: block; }
@keyframes lg-putar { to { transform: rotate(360deg); } }

.lg-aman { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; font-size: 12.5px; color: var(--redup); }
.lg-aman svg { color: #1b9d4f; }

/* ---------- layar kecil ---------- */
@media (max-width: 1000px) { .lg-merek { padding: 40px 30px 0; } .lg-merek h2 { font-size: 27px; } .lg-maskot { width: 170px; right: 14px; } }
@media (max-width: 860px) {
  .lg-kartu { grid-template-columns: 1fr; max-width: 460px; }
  .lg-merek { display: none; }
  .lg-form { padding: 36px 26px 22px; }
  .lg-kepala h1 { font-size: 23px; }
  .lg-logo { height: 80px; }
}
@media (max-width: 380px) { .lg-form { padding: 30px 18px 20px; } }
@media (prefers-reduced-motion: reduce) {
  .lg-kartu, .lg-bulat, .lg-maskot, .lg-putar { animation: none !important; }
  .lg-putar { animation: lg-putar 1.6s linear infinite !important; }
}
.lg-alert.alert-warning { color: #8a5a00; background: #fff3cf; border-color: #f2d27a; }
.lg-alert.alert-danger { color: #a3122f; background: #ffe6ec; border-color: #f4b6c4; }
.lg-alert.alert-success { color: #146c3a; background: #dff6e9; border-color: #a9e0c0; }

/* ---------- identitas RSUD Kepulauan Seribu: panel kiri hanya logo ---------- */
.lg-merek.lg-merek-logo {
  display: flex; align-items: center; justify-content: center; padding: 48px;
  background:
    radial-gradient(520px 360px at 85% 8%, rgba(71, 168, 142, .28), transparent 65%),
    radial-gradient(420px 320px at 8% 96%, rgba(235, 132, 35, .16), transparent 65%),
    linear-gradient(160deg, #234974 0%, #17304f 100%);
}
.lg-logo-besar { position: relative; z-index: 2; width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.lg-logo { height: 60px; }

/* latar luar halaman & penyesuaian layar */
.login-body { background: #17304f; }
.login-latar {
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(71, 168, 142, .30), transparent 60%),
    radial-gradient(800px 560px at 92% 96%, rgba(235, 132, 35, .16), transparent 62%),
    linear-gradient(135deg, #17304f 0%, #234974 55%, #2c5f86 100%);
}
@media (max-width: 860px) { .lg-merek.lg-merek-logo { display: none; } }


/* kepala formulir: tulisan CMS + kepanjangan */
.lg-kepala h1 { font-size: 38px; font-weight: 800; letter-spacing: .14em; color: #234974; margin: 0 0 4px; }
.lg-kepala .lg-kepanjangan { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #47a88e; }

/* panel kiri: logo RSUD beranimasi (muncul, melayang, cahaya berdenyut, kilau) */
.lg-logo-animasi { position: relative; z-index: 2; width: 100%; max-width: 380px; display: grid; place-items: center; padding: 30px 0;
  animation: lg-logo-masuk 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.lg-logo-animasi .lg-logo-besar { position: relative; z-index: 2; animation: lg-logo-melayang 5s ease-in-out 1.1s infinite, lg-logo-cahaya 3.6s ease-in-out 1.1s infinite; }
/* lapisan kilau berbentuk logo harus melayang seirama dengan logonya, kalau tidak teks tampak dobel */
.lg-cincin { position: absolute; z-index: 1; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  border: 2px solid rgba(95, 224, 187, .7); animation: lg-cincin 3.6s ease-out 1.2s infinite; opacity: 0; }
.lg-cincin-2 { animation-delay: 3s; border-color: rgba(255, 157, 61, .6); }
.lg-kilau { position: absolute; z-index: 3; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask: url("../img/logo-rsud.webp") center / contain no-repeat; mask: url("../img/logo-rsud.webp") center / contain no-repeat;
  animation: lg-logo-melayang 5s ease-in-out 1.1s infinite; }
/* cahaya berwarna (hijau ke jingga) menyapu logo; berwarna supaya terlihat di atas logo putih */
.lg-kilau::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 58%; left: -70%;
  background: linear-gradient(105deg, transparent 4%, #5fe0bb 36%, #ffd27a 56%, #ff9230 70%, transparent 96%); animation: lg-kilau 3.6s ease-in-out 1.4s infinite; }
@keyframes lg-logo-masuk { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lg-logo-melayang { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.04); } }
@keyframes lg-logo-cahaya { 0%, 100% { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); } 50% { filter: drop-shadow(0 0 18px rgba(95, 224, 187, .75)) drop-shadow(0 16px 26px rgba(0, 0, 0, .3)); } }
@keyframes lg-cincin { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes lg-kilau { 0%, 18% { left: -70%; } 82%, 100% { left: 125%; } }
@media (prefers-reduced-motion: reduce) {
  .lg-logo-animasi, .lg-logo-animasi .lg-logo-besar, .lg-cincin, .lg-kilau, .lg-kilau::after { animation: none !important; }
  .lg-cincin { display: none; }
}
