/*!
 * SILAPIS-2027 (Sistem Informasi Laporan Penegakan Syariat Islam & Trantibum)
 * Satuan Polisi Pamong Praja dan Wilayatul Hisbah Kota Banda Aceh
 * 
 * Lead Software Architect & Developer : Erie Fikrie
 * Official Institution                : Satpol PP & WH Kota Banda Aceh
 * Copyright (c) 2024 - 2026 Pemerintah Kota Banda Aceh. All rights reserved.
 */

:root {
            --pure-black: #000000;
            --soft-black: #121212;
            --pure-white: #ffffff;
            --border-line: #e2e8f0;
            --text-muted: #64748b;
            --fs-title: clamp(1.25rem, 2.2vh, 1.65rem);
            --fs-sub: clamp(0.78rem, 1.3vh, 0.88rem);
            --fs-banner-main: clamp(1.4rem, 3.5vh, 2.2rem);
            --fs-banner-sub: clamp(0.75rem, 1.5vh, 0.95rem);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            height: 100dvh;
            overflow: hidden; /* Mencegah scrollbar pada semua device */
            background-color: var(--pure-white);
            color: var(--soft-black);
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .login-wrapper {
            height: 100vh;
            height: 100dvh;
            width: 100vw;
            overflow: hidden;
        }

        .login-row {
            height: 100%;
            height: 100dvh;
        }

        /* ── Kolom Form Kiri ─────────────────────────────────── */
        .login-form-side {
            background-color: var(--pure-white);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: clamp(0.85rem, 2.2vh, 2rem) clamp(1rem, 3vw, 2.75rem);
            height: 100%;
            height: 100dvh;
            overflow-y: auto; /* Fallback safe jika layar ultra-pendek */
            scrollbar-width: none; /* Hilangkan scrollbar */
        }
        .login-form-side::-webkit-scrollbar {
            display: none;
        }

        .login-card-content {
            width: 100%;
            max-width: 420px;
            margin: auto;
        }

        .brand-badge-login {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.25rem 0.75rem;
            background-color: #f8fafc;
            border: 1px solid var(--border-line);
            border-radius: 9999px;
            font-size: clamp(0.68rem, 1vh, 0.75rem);
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--pure-black);
            margin-bottom: clamp(0.5rem, 1.2vh, 1rem);
        }

        .login-title {
            font-size: var(--fs-title);
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--pure-black);
            line-height: 1.15;
            margin-bottom: 0.25rem;
        }

        .login-subtitle {
            font-size: var(--fs-sub);
            color: var(--text-muted);
            margin-bottom: clamp(0.75rem, 1.8vh, 1.35rem);
            line-height: 1.4;
        }

        .form-floating-custom {
            margin-bottom: clamp(0.625rem, 0.4205rem + 0.9091vw, 0.875rem);
        }

        .form-label-custom {
            font-size: clamp(0.75rem, 0.6477rem + 0.4545vw, 0.875rem);
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 0.55rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .form-control-custom {
            border: 1.5px solid #0000006e;
            border-radius: 7px;
            padding: clamp(0.375rem, 0.375rem + 0vw, 0.375rem) 0.85rem;
            font-size: clamp(0.875rem, 0.7727rem + 0.4545vw, 1rem);
            color: #0f172a;
            background-color: #ffffff;
            transition: all 0.2s ease;
            width: 100%;
        }

        .form-control-custom:focus {
            border-color: var(--pure-black);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
            background-color: #ffffff;
        }

        .form-check-input:checked {
            background-color: var(--pure-black);
            border-color: var(--pure-black);
            box-shadow: var(--pure-black);
        }

        .form-check-input:focus {
            border-color: var(--pure-black);
            box-shadow: var(--pure-black);
        }

        .btn-black-login {
            background-color: var(--pure-black);
            color: var(--pure-white);
            border: 1.5px solid var(--pure-black);
            border-radius: 7px;
            padding: clamp(0.5rem, 1.2vh, 0.68rem) 1.2rem;
            font-size: clamp(0.82rem, 1.2vh, 0.92rem);
            font-weight: 700;
            letter-spacing: 0.02em;
            transition: all 0.2s ease;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
        }

        .btn-black-login:hover {
            background-color: #27272a;
            border-color: #27272a;
            color: var(--pure-white);
            transform: translateY(-1px);
        }

        .btn-black-login:focus {
            background-color: #434346;
            border-color: #434346;
            color: var(--pure-white);
            transform: translateY(-1px);
        }

        .btn-back-home {
            color: var(--text-muted);
            text-decoration: none;
            font-size: clamp(0.74rem, 1.1vh, 0.82rem);
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            transition: color 0.15s ease;
        }

        .btn-back-home:hover {
            color: var(--pure-black);
        }

        /* ── Kolom Banner Kanan (Hitam & 4 Logo) ───────────────── */
        .login-banner-side {
            background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.8)), url("/builds/images/image1.jpg");
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            color: var(--pure-white);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: clamp(1.5rem, 3vh, 3.5rem);
            height: 100%;
            height: 100dvh;
            position: relative;
            overflow: hidden;
            border-left: 1px solid #27272a;
        }

        .login-banner-side::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: 
                radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
            background-size: 22px 22px;
            opacity: 0.8;
            pointer-events: none;
        }

        .banner-content {
            position: relative;
            z-index: 2;
            max-width: 520px;
            width: 100%;
            text-align: center;
        }

        /* Kotak 4 Logo Bersama */
        .logos-container {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: clamp(0.6rem, 1.3vw, 1.2rem);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.12);
            padding: clamp(0.6rem, 1.2vh, 1rem) clamp(0.9rem, 1.6vw, 1.5rem);
            border-radius: 14px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

        .logo-item {
            width: clamp(40px, 4.2vw, 62px);
            height: clamp(40px, 4.2vw, 62px);
            object-fit: contain;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
            position: relative;
            cursor: pointer;
            user-select: none;
            will-change: transform;
        }

        .banner-instansi-title {
            font-size: clamp(1.875rem, 1.5682rem + 1.3636vw, 2.25rem);
            font-weight: 400;
            letter-spacing: 0em;
            text-transform: uppercase;
            color: #d4d4d8;
            line-height: 1.1;
            margin-bottom: clamp(0.4rem, 1vh, 0.75rem);
        }

        .banner-app-title {
            font-size: clamp(1.875rem, 1.875rem + 0vw, 1.875rem);
            font-weight: 900;
            letter-spacing: 0.18em;
            color: var(--pure-white);
            margin-bottom: clamp(0.2rem, 0.8vh, 0.4rem);
            text-transform: uppercase;
        }

        .banner-quote {
            font-size: clamp(0.875rem, 0.5682rem + 1.3636vw, 1.25rem);
            font-style: italic;
            color: #a1a1aa;
            margin-top: clamp(0.3rem, 0.8vh, 0.5rem);
            font-weight: 500;
            letter-spacing: 0.02em;
        }

        .banner-badge-line {
            display: inline-block;
            width: 48px;
            height: 3px;
            background: #ffffff;
            border-radius: 2px;
            margin: clamp(0.6rem, 1.4vh, 1rem) auto;
        }

        /* ── Mobile Responsive Settings ──────────────────────── */
        @media (max-width: 991.98px) {
            .login-banner-side {
                display: none !important; /* Hilang total di mobile */
            }
            .login-form-side {
                height: 100vh;
                height: 100dvh;
                padding: 1.25rem 2.2rem;
                justify-content: space-between;
            }
            .login-card-content {
                max-width: 100%;
            }
        }