/*
 * Halaman login — tema Inspektorat "STOP GRATIFIKASI".
 * Dipakai oleh app/Views/login.php. Semua kelas berawalan .lg- supaya tidak
 * bertabrakan dengan dashboard.css (Tabler). Latar dibuat dengan CSS + SVG
 * inline (tanpa file gambar tambahan, tetap tampil tanpa internet).
 */

.lg-html,
.lg-body {
    --lg-navy-900: #081629;
    --lg-navy-800: #0b1f3a;
    --lg-navy-700: #12325c;
    --lg-navy-600: #1a4275;
    --lg-gold: #d4af37;
    --lg-gold-soft: #ecd48a;
    --lg-muted: #bccadc;
    background-color: var(--lg-navy-800);
}

.lg-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: #fff;
    background-image:
        radial-gradient(1100px 620px at 10% 16%, rgba(212, 175, 55, .16), transparent 60%),
        radial-gradient(900px 700px at 94% 92%, rgba(64, 132, 214, .22), transparent 60%),
        linear-gradient(135deg, #081629 0%, #0e2748 48%, #0a1d38 100%);
    background-attachment: fixed;
}

/* ---------- Lapisan latar (dekoratif, tidak bisa diklik) ---------- */
.lg-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Motif batik kawung tipis, memudar ke tepi */
.lg-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .10;
    background-size: 60px 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1'%3E%3Cellipse cx='19.4' cy='19.4' rx='7' ry='12' transform='rotate(-45 19.4 19.4)'/%3E%3Cellipse cx='40.6' cy='40.6' rx='7' ry='12' transform='rotate(-45 40.6 40.6)'/%3E%3Cellipse cx='40.6' cy='19.4' rx='7' ry='12' transform='rotate(45 40.6 19.4)'/%3E%3Cellipse cx='19.4' cy='40.6' rx='7' ry='12' transform='rotate(45 19.4 40.6)'/%3E%3Ccircle cx='30' cy='30' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='60' cy='0' r='3'/%3E%3Ccircle cx='0' cy='60' r='3'/%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 28% 45%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 80% at 28% 45%, #000 0%, transparent 78%);
}

/* Garis tipis emas di sisi atas */
.lg-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--lg-gold) 30%, var(--lg-gold-soft) 50%, var(--lg-gold) 70%, transparent 100%);
    opacity: .85;
}

/* Bentuk segi delapan (rambu STOP) besar sebagai watermark */
.lg-octagon {
    position: absolute;
    top: 50%;
    left: -170px;
    width: 720px;
    height: 720px;
    transform: translateY(-50%);
    color: var(--lg-gold);
    opacity: .07;
}

/* Siluet pendopo (bangunan pemerintahan) */
.lg-pendopo {
    position: absolute;
    bottom: 34px;
    left: 3%;
    width: 520px;
    max-width: 46vw;
    height: auto;
    color: var(--lg-gold);
    opacity: .13;
}

/* ---------- Tata letak ---------- */
.lg-wrap {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 40px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 410px);
    gap: 72px;
    align-items: center;
}

/* ---------- Panel judul (kiri) ---------- */
.lg-hero {
    animation: lgMasuk .7s ease-out both;
}

.lg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
}

.lg-brand img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}

.lg-brand-kecil {
    display: block;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lg-muted);
}

.lg-brand-besar {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}

.lg-rambu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    color: var(--lg-gold);
}

.lg-rambu svg:not(.lg-ikon) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lg-rambu .lg-ikon {
    position: relative;
    width: 26px;
    height: 26px;
}

.lg-title {
    margin: 0;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2.3rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: .04em;
    color: #fff;
}

.lg-title-stop {
    display: block;
    color: var(--lg-gold);
    letter-spacing: .2em;
}

.lg-title-utama {
    display: block;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.lg-garis {
    width: 76px;
    height: 3px;
    margin: 28px 0 22px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--lg-gold), rgba(212, 175, 55, 0));
}

.lg-lead {
    max-width: 34rem;
    margin: 0 0 26px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--lg-muted);
}

.lg-pilar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.lg-pilar li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 999px;
    background: rgba(212, 175, 55, .08);
}

.lg-ikon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
}

.lg-pilar .lg-ikon {
    width: 1.05em;
    height: 1.05em;
    color: var(--lg-gold);
}

.lg-catatan {
    display: flex;
    gap: 10px;
    max-width: 34rem;
    margin: 0;
    font-size: .85rem;
    line-height: 1.6;
    color: var(--lg-muted);
}

.lg-catatan .lg-ikon {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    color: var(--lg-gold);
}

/* ---------- Kartu login (kanan) ---------- */
.lg-panel {
    width: 100%;
}

.lg-card {
    margin-bottom: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    color: #495057;
    box-shadow: 0 34px 70px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}

.lg-card-head {
    padding: 26px 32px 20px;
    text-align: center;
    border-top: 4px solid var(--lg-gold);
    border-bottom: 1px solid #edf0f5;
    background: #fff;
}

.lg-card-head img {
    max-width: 100%;
    height: 58px;
    width: auto;
}

.lg-card .card-body {
    padding: 28px 32px 32px !important;
}

.lg-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2d3d;
}

.lg-card .form-control:focus {
    border-color: var(--lg-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, .25);
}

.lg-card a:not(.btn) {
    color: var(--lg-navy-600);
}

.lg-card .btn-primary {
    padding-top: .55rem;
    padding-bottom: .55rem;
    font-weight: 600;
    letter-spacing: .03em;
    background-color: var(--lg-navy-700);
    border-color: var(--lg-navy-700);
}

.lg-card .btn-primary:hover,
.lg-card .btn-primary:focus,
.lg-card .btn-primary:active {
    background-color: var(--lg-navy-600) !important;
    border-color: var(--lg-navy-600) !important;
}

.lg-card .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .35) !important;
}

.lg-register {
    margin-top: 18px;
    text-align: center;
    font-size: .9rem;
    color: var(--lg-muted);
}

.lg-register a {
    font-weight: 600;
    color: var(--lg-gold-soft);
}

/* ---------- Kaki halaman ---------- */
.lg-foot {
    position: relative;
    z-index: 1;
    padding: 16px 24px 22px;
    text-align: center;
    font-size: .78rem;
    letter-spacing: .04em;
    color: rgba(188, 202, 220, .75);
}

@keyframes lgMasuk {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-hero { animation: none; }
}

/* ---------- Tablet & HP ---------- */
@media (max-width: 991.98px) {
    .lg-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        max-width: 480px;
        padding: 32px 16px 20px;
    }

    .lg-hero {
        text-align: center;
    }

    .lg-brand {
        justify-content: center;
        text-align: left;
        margin-bottom: 26px;
    }

    .lg-brand img {
        width: 44px;
        height: 44px;
    }

    .lg-rambu {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }

    .lg-rambu .lg-ikon {
        width: 20px;
        height: 20px;
    }

    .lg-garis {
        margin: 18px auto 16px;
    }

    /* Di layar kecil cukup judul + tiga pilar, supaya form login tetap dekat */
    .lg-lead,
    .lg-catatan {
        display: none;
    }

    .lg-pilar {
        justify-content: center;
        margin-bottom: 0;
    }

    .lg-pilar li {
        padding: 6px 12px;
        font-size: .72rem;
        letter-spacing: .08em;
    }

    .lg-octagon {
        top: 120px;
        left: 50%;
        width: 520px;
        height: 520px;
        transform: translate(-50%, -50%);
    }

    .lg-pendopo {
        left: 50%;
        bottom: 20px;
        width: 92vw;
        max-width: 520px;
        transform: translateX(-50%);
        opacity: .09;
    }
}

@media (max-width: 400px) {
    .lg-card-head {
        padding: 20px 20px 16px;
    }

    .lg-card-head img {
        height: 48px;
    }

    .lg-card .card-body {
        padding: 22px 20px 24px !important;
    }
}
