/* Tampilan halaman login Presensi SMPN 167 Jakarta (siswa & staf/admin). */
:root {
    --navy: #0e2a47;
    --navy-2: #163d66;
    --aksen: #1f6feb;
    --aksen-gelap: #1858c4;
    --teks: #1b2430;
    --redup: #64748b;
    --garis: #d9e0e8;
    --latar: #f3f6f9;
    --kartu: #ffffff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.masuk {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--teks);
    background: var(--latar);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.masuk-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ---------- Panel identitas (kiri) ---------- */
.masuk-identitas {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.masuk-identitas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.08) 0, transparent 40%),
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    pointer-events: none;
}
.masuk-identitas > * { position: relative; }

.sekolah { display: flex; align-items: center; gap: 14px; }
.sekolah img {
    width: 52px; height: 52px; object-fit: contain;
    background: #fff; border-radius: 12px; padding: 6px;
}
.sekolah b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.sekolah span { font-size: 13px; color: rgba(255,255,255,.7); }

.masuk-judul h1 {
    font-size: 34px; line-height: 1.2; font-weight: 700;
    margin: 0 0 14px; letter-spacing: -.5px;
}
.masuk-judul p {
    margin: 0; max-width: 440px;
    color: rgba(255,255,255,.75); line-height: 1.6;
}
.fitur { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.fitur li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.88); font-size: 14px; }
.fitur i {
    width: 34px; height: 34px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); font-size: 14px; flex: none;
}
.masuk-identitas small { color: rgba(255,255,255,.55); font-size: 12.5px; }

/* ---------- Panel formulir (kanan) ---------- */
.masuk-form {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.kotak { width: 100%; max-width: 400px; }

.pilih-peran {
    display: grid; grid-template-columns: 1fr 1fr;
    background: #e7ecf2; border-radius: 10px; padding: 4px;
    margin-bottom: 32px;
}
.pilih-peran a {
    text-align: center; padding: 9px 8px; border-radius: 7px;
    font-size: 13.5px; font-weight: 600; color: var(--redup);
    text-decoration: none; transition: background .15s, color .15s;
}
.pilih-peran a:hover { color: var(--teks); text-decoration: none; }
.pilih-peran a.aktif {
    background: #fff; color: var(--navy);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.pilih-peran i { margin-right: 6px; }

.kotak h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.3px; color: var(--navy); }
.kotak .sub { color: var(--redup); margin: 0 0 26px; font-size: 14px; }

.isian { margin-bottom: 18px; }
.isian label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #334155; }
.kolom { position: relative; }
.kolom > i.ikon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px; pointer-events: none;
}
.kolom input {
    width: 100%; height: 46px;
    padding: 0 44px 0 40px;
    border: 1px solid var(--garis); border-radius: 9px;
    font: inherit; color: var(--teks); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.kolom input::placeholder { color: #a3adba; }
.kolom input:focus {
    outline: none; border-color: var(--aksen);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .15);
}
.lihat {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; background: transparent;
    color: #94a3b8; border-radius: 7px; cursor: pointer;
}
.lihat:hover, .lihat:focus { color: var(--teks); background: #f1f5f9; outline: none; }
.galat { display: block; color: #dc2626; font-size: 12.5px; margin-top: 6px; }

.tombol {
    width: 100%; height: 46px; margin-top: 8px;
    border: 0; border-radius: 9px;
    background: var(--aksen); color: #fff;
    font: inherit; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: background .15s, box-shadow .15s;
}
.tombol:hover { background: var(--aksen-gelap); }
.tombol:focus { outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 235, .3); }
.tombol:disabled { opacity: .75; cursor: progress; }
.tombol.berhasil { background: #16a34a; }
.tombol i { margin-right: 6px; }

.catatan {
    margin-top: 26px; padding-top: 20px; border-top: 1px solid #e5e9ef;
    font-size: 13px; color: var(--redup); line-height: 1.55;
}
.catatan i { color: #94a3b8; margin-right: 6px; }

/* Pesan (flashdata & ajax) memakai kelas .alert Bootstrap */
.kotak .alert { border-radius: 9px; font-size: 14px; padding: 11px 14px; margin-bottom: 20px; }

.hak-cipta-hp { display: none; }

/* ---------- Layar kecil ---------- */
@media (max-width: 900px) {
    .masuk-wrap { grid-template-columns: 1fr; }
    .masuk-identitas { padding: 22px 20px 26px; }
    .masuk-judul, .fitur, .masuk-identitas small { display: none; }
    .masuk-form { align-items: flex-start; padding: 28px 16px 40px; }
    .hak-cipta-hp { display: block; text-align: center; color: #94a3b8; font-size: 12px; margin-top: 28px; }
}
