/* RAPIDITAS.top tema ceria v2 — dipakai index_v2, siswa_login_v2, siswa_daftar_cam_v2 */
.ikon { width: 1.25em; height: 1.25em; fill: currentColor; flex: 0 0 auto; display: inline-block; vertical-align: -.25em; }
.fitur .ikon { width: 26px; height: 26px; }
.modal-isi .ikon { width: 58px; height: 58px; }
:root {
    --ungu: #7b3fe4; --pink: #ff4f9a; --oranye: #ff9a3d; --kuning: #ffd23f; --toska: #19c3d6; --hijau: #22c995;
    --teks: #2d2350; --abu: #6b6585; --garis: #ece8f6; --latar: #f6f2ff;
    --grad: linear-gradient(115deg, #7b3fe4 0%, #ff4f9a 55%, #ff9a3d 100%);
    --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--teks); background: var(--latar); min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, .judul { font-family: 'Baloo 2', 'Nunito', sans-serif; }
a { color: inherit; }

/* Hiasan latar */
.hiasan { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hiasan::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 360px; background: var(--grad); border-radius: 0 0 50% 50% / 0 0 70px 70px; }
.gel { position: absolute; border-radius: 50%; opacity: .5; animation: apung 9s ease-in-out infinite; }
.gel.a { width: 180px; height: 180px; left: -50px; top: 220px; background: #ffd23f; }
.gel.b { width: 120px; height: 120px; right: -30px; top: 120px; background: #19c3d6; animation-delay: -3s; }
.gel.c { width: 90px; height: 90px; right: 12%; bottom: 8%; background: #ff4f9a; animation-delay: -5s; }
.gel.d { width: 140px; height: 140px; left: 8%; bottom: -40px; background: #22c995; animation-delay: -7s; }
@keyframes apung { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }

.wadah { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 22px 16px 120px; }
.atas { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; margin-bottom: 18px; }
.merek { font-family: 'Baloo 2'; font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.merek span { color: var(--kuning); }
.atas a.kecil { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.2); text-decoration: none; font-weight: 800; font-size: 13px; backdrop-filter: blur(6px); }

.tata { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; }
.kartu { background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 18px 40px rgba(60, 20, 120, .12); }
.sambut { color: #fff; padding: 8px 4px 0; }
.sambut h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }
.sambut h1 em { font-style: normal; color: var(--kuning); }
.sambut p { margin: 10px 0 0; font-size: 16px; opacity: .95; max-width: 460px; line-height: 1.5; }
.lottie { display: block; width: 100%; max-width: 380px; height: auto; margin: 6px auto 0; }

.logo { width: 100%; height: 120px; background: center / contain no-repeat; margin-bottom: 14px; }
.label { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #f1ecff; color: var(--ungu); font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.judul-cbt { margin: 10px 0 4px; font-size: 24px; line-height: 1.2; font-weight: 800; }
.tidak-valid { margin-top: 10px; padding: 14px; border-radius: 16px; background: #fff1f1; color: #c62828; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.info-kosong { padding: 6px 0 2px; color: var(--abu); line-height: 1.55; }
.info-kosong b { color: var(--teks); }

.pesan { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; margin-bottom: 14px; font-weight: 700; background: #fff8e1; color: #8a5a00; }
.pesan.alert-success { background: #e9f9f1; color: #11734f; }
.pesan.alert-danger, .pesan.alert-warning, .pesan.perhatian { background: #fff1f1; color: #c62828; }

form { margin-top: 16px; display: grid; gap: 12px; }
label.f { display: block; font-size: 12px; font-weight: 800; color: var(--abu); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.masukan { width: 100%; padding: 14px 16px; border: 2px solid var(--garis); border-radius: 16px; font: 800 18px 'Nunito', sans-serif; color: var(--teks); background: #fbfaff; outline: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.masukan:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(123, 63, 228, .12); }
.captcha { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.captcha img { border-radius: 14px; border: 2px solid var(--garis); background: #fff; display: block; }
.captcha .masukan { letter-spacing: 6px; text-align: center; }

.tombol { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; padding: 15px 18px; border-radius: 999px; color: #fff; font: 800 16px 'Nunito', sans-serif; letter-spacing: .5px; cursor: pointer; text-decoration: none; background: var(--grad); box-shadow: 0 12px 26px rgba(255, 79, 154, .35); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tombol:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 79, 154, .45); }
.tombol:active { transform: scale(.98); }
.tombol.putih { background: #fff; color: var(--ungu); border: 2px solid var(--garis); box-shadow: none; }
.tombol.hijau { background: linear-gradient(115deg, #1fb37a, #19c3d6); box-shadow: 0 12px 26px rgba(31, 179, 122, .3); }
.tombol.oranye { background: linear-gradient(115deg, #ff9a3d, #ff4f9a); }
.tombol small { display: block; font-size: 12px; font-weight: 700; opacity: .9; }
.tautan { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--garis); }

.pengguna { margin-top: 20px; }
.pengguna .pita { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 18px; color: #fff; font-weight: 800; text-align: center; background: linear-gradient(115deg, #2f5bd8, #7b3fe4); }
.pengguna img { display: block; width: 100%; height: auto; margin-top: 12px; }

.fitur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.fitur div { background: rgba(255,255,255,.18); border-radius: 18px; padding: 12px; color: #fff; font-weight: 800; font-size: 13px; text-align: center; backdrop-filter: blur(6px); }
.fitur .ikon { display: block; margin: 0 auto 4px; color: var(--kuning); }

/* Konfirmasi MULAI */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(30, 15, 60, .55); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-isi { width: min(420px, 100%); background: #fff; border-radius: 26px; padding: 26px 22px; text-align: center; animation: muncul .45s var(--ease); }
.modal-isi .ikon { color: var(--pink); }
.modal-isi h3 { margin: 6px 0; font-size: 22px; }
.modal-isi p { margin: 0 0 18px; color: var(--abu); line-height: 1.5; }
.modal-isi .dua { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes muncul { from { opacity: 0; transform: translateY(16px) scale(.96) } to { opacity: 1; transform: none } }

/* Notifikasi peserta (cbt_live) */
.notif { position: fixed; right: 16px; top: 16px; z-index: 40; width: min(340px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgba(60, 20, 120, .22); border-left: 6px solid var(--hijau);
         transform: translate3d(calc(100% + 48px), 0, 0); opacity: 0; will-change: transform, opacity;
         transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .8s ease; }
.notif.tampil { transform: translate3d(0, 0, 0); opacity: 1; }
/* Saat keluar: geser kembali ke kanan lebih pelan */
.notif.keluar { transition: transform 1s cubic-bezier(.7, 0, .84, 0), opacity .9s ease .1s; }
.notif.mengerjakan { border-left-color: var(--oranye); }
.notif .ava { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-family: 'Baloo 2'; font-size: 20px; font-weight: 800; background: var(--grad); }
.notif .isi { min-width: 0; }
.notif b { display: block; font-size: 15px; line-height: 1.25; word-break: break-word; }
.notif .status { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--hijau); }
.notif.mengerjakan .status { background: var(--oranye); }
.notif.mengerjakan .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: kedip 1s infinite; }
.notif small { display: block; color: var(--abu); font-size: 12px; font-weight: 700; line-height: 1.4; word-break: break-word; }
.notif .pelajaran { display: inline-block; max-width: 100%; margin-top: 6px; padding: 3px 10px; border-radius: 8px; background: var(--latar); color: var(--ungu); font-size: 12px; font-weight: 800; line-height: 1.35; word-break: break-word; }
.notif .pelajaran::before { content: '📘 '; }
.notif .pelajaran:empty { display: none; }
@keyframes kedip { 50% { opacity: .2 } }

@media (max-width: 860px) {
    .tata { grid-template-columns: 1fr; }
    .sambut { text-align: center; }
    .sambut p { margin-left: auto; margin-right: auto; }
    .lottie { max-width: 260px; }
}
@media (max-width: 420px) {
    .kartu { padding: 20px 16px; border-radius: 24px; }
    .captcha { grid-template-columns: 1fr; justify-items: center; }
    .fitur { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .fitur div { font-size: 11px; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) { *:not(.notif), *::before, *::after { animation: none !important; transition: none !important; } }

/* Halaman form (login / daftar) */
.kartu.sempit { max-width: 520px; margin: 0 auto; }
.kepala-form { text-align: center; margin-bottom: 6px; }
.kepala-form h2 { margin: 0; font-size: 28px; }
.kepala-form p { margin: 4px 0 0; color: var(--abu); font-weight: 700; }
.lottie.kecil { max-width: 150px; margin: 0 auto; }
.dua-kolom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select.masukan { appearance: none; -webkit-appearance: none; padding-right: 44px; font-size: 16px;
    background: #fbfaff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%237b3fe4' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center; }
.masukan.biasa { font-size: 16px; }
.izin { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #eef3ff; color: #2f3f8f; font-weight: 700; font-size: 14px; line-height: 1.5; }
.kamera { position: relative; border-radius: 22px; overflow: hidden; background: #1e1640; aspect-ratio: 4 / 3; display: none; }
.kamera.aktif { display: block; }
.kamera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.kamera span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 800; }
.tombol:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.bukti { margin-top: 10px; }
@media (max-width: 420px) { .dua-kolom { grid-template-columns: 1fr; } }
