/* Login page styles extracted from login.php. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-light: linear-gradient(135deg,#f8fafc,#e2e8f0);
    --border-dark: rgba(255,255,255,0.15);
    --border-light: rgba(0,0,0,0.08);
    --text-light: #0f172a;
    --primary: #2563eb;
}

body {
    transition: background .3s, color .3s;
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    background: rgba(255,255,255,0.1);
    color: inherit;
    outline: none;
    transition: .25s;
}

body.light input,
body.light select,
body.light textarea {
    background: rgba(0,0,0,0.05);
    border-color: var(--border-light);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.25);
}

textarea {
    resize: vertical;
}

body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            background: radial-gradient(circle at top left, #0f172a, #020617);
            color: #fff;
        }

        .login-box {
            width: 100%;
            max-width: 420px;
            padding: 32px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(255,255,255,0.15);
            box-shadow: 0 25px 60px rgba(0,0,0,0.6);
            animation: fadeIn 0.6s ease;
        }

        @keyframes fadeIn {
            from {opacity: 0; transform: translateY(15px);}
            to {opacity: 1; transform: translateY(0);}
        }

        .login-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .login-header .logo-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .login-header img {
            height: 46px;
        }

        .login-header h2 {
            margin: 14px 0 0;
            font-weight: 600;
            font-size: 18px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .password-group {
            position: relative;
            overflow: visible;
        }

        .form-group input {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.12);
            color: #fff;
            outline: none;
            transition: 0.3s;
            box-sizing: border-box;
        }

        .form-group input::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .form-group input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
        }

        .form-group input:-webkit-autofill,
        .form-group input:-webkit-autofill:hover,
        .form-group input:-webkit-autofill:focus,
        .form-group input:-webkit-autofill:active {
            -webkit-text-fill-color: #ffffff;
            caret-color: #ffffff;
            -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.12) inset;
            box-shadow: 0 0 0 1000px rgba(255,255,255,0.12) inset;
            border: 1px solid rgba(255,255,255,0.2);
            transition: background-color 9999s ease-in-out 0s;
        }

        .password-group input {
            padding-right: 110px;
        }

        .toggle-password {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            height: 32px;
            min-height: 32px;
            min-width: 64px;
            padding: 0 12px;
            border-radius: 9px;
            border: 1px solid rgba(148,163,184,0.22);
            background: rgba(148,163,184,0.12);
            color: #e2e8f0;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-sizing: border-box;
            appearance: none;
            -webkit-appearance: none;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .toggle-password:hover {
            background: rgba(96,165,250,0.18);
            border-color: rgba(96,165,250,0.34);
            color: #ffffff;
        }

        .toggle-password:focus,
        .toggle-password:active {
            outline: none;
            background: rgba(96,165,250,0.18);
            border-color: rgba(96,165,250,0.38);
            color: #ffffff;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

        .login-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: -2px 0 18px;
        }

        .remember-me {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: rgba(255,255,255,0.86);
            font-size: 14px;
            cursor: pointer;
            user-select: none;
        }

        .remember-me input {
            width: 16px;
            height: 16px;
            margin: 0;
            accent-color: #3b82f6;
            flex: 0 0 16px;
        }

        .btn-login {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 14px;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            color: #fff;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
            box-shadow:
                0 8px 18px rgba(37,99,235,0.26),
                0 2px 6px rgba(59,130,246,0.18);
        }

        .btn-login:hover {
            transform: translateY(-1px);
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
            box-shadow:
                0 10px 22px rgba(37,99,235,0.3),
                0 4px 10px rgba(96,165,250,0.18);
        }

        .btn-login:focus,
        .btn-login:active {
            outline: none;
            box-shadow:
                0 10px 22px rgba(37,99,235,0.28),
                0 0 0 3px rgba(96,165,250,0.14);
        }

        .error {
            background: rgba(239,68,68,0.15);
            border: 1px solid rgba(239,68,68,0.4);
            color: #fecaca;
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 14px;
            text-align: center;
            font-size: 14px;
        }

        @media (max-width: 768px) {
            body {
                align-items: stretch;
                padding: 18px 14px;
            }

            .login-box {
                max-width: 100%;
                margin: auto 0;
                padding: 24px 20px;
                border-radius: 14px;
                box-shadow: 0 18px 42px rgba(0,0,0,0.45);
            }

            .login-header {
                margin-bottom: 20px;
            }

            .login-header .logo-row {
                gap: 8px;
            }

            .login-header img {
                height: 38px;
            }

            .login-header h2 {
                margin-top: 12px;
                font-size: 17px;
                line-height: 1.35;
            }

            .form-group {
                margin-bottom: 14px;
            }

            .form-group input {
                min-height: 50px;
                padding: 13px 14px;
                border-radius: 12px;
                font-size: 16px;
            }

            .password-group input {
                padding-right: 96px;
            }

            .toggle-password {
                right: 8px;
                top: 50%;
                transform: translateY(-50%);
                height: 32px;
                min-height: 32px;
                min-width: 68px;
                padding: 0 10px;
                border-radius: 9px;
                font-size: 12px;
                width: auto !important;
                margin-bottom: 0 !important;
            }

            .login-options {
                margin: 2px 0 16px;
            }

            .remember-me {
                display: inline-flex !important;
                align-items: center !important;
                width: auto !important;
                gap: 8px;
                font-size: 13px;
                margin-bottom: 0 !important;
            }

            .remember-me input,
            .login-options .remember-me input {
                width: 14px !important;
                min-width: 14px !important;
                max-width: 14px !important;
                height: 14px !important;
                min-height: 14px !important;
                flex-basis: 14px;
                flex: 0 0 14px !important;
                padding: 0 !important;
                margin: 0 !important;
                border-radius: 4px !important;
            }

            .login-options .remember-me span {
                line-height: 1.3;
            }

            .btn-login {
                min-height: 50px;
                border-radius: 12px;
                font-size: 15px;
            }

            .error {
                padding: 11px 12px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .login-box {
                padding: 22px 16px;
            }

            .login-options {
                align-items: flex-start;
                flex-direction: column;
                gap: 10px;
            }

            .password-group input {
                padding-right: 88px;
            }

            .toggle-password {
                top: 50%;
                transform: translateY(-50%);
                height: 30px;
                min-height: 30px;
                min-width: 62px;
                padding: 0 8px;
                font-size: 11px;
            }

            .login-header img {
                height: 34px;
            }

            .login-header h2 {
                font-size: 16px;
            }
        }

/* UI text should not show the text-selection cursor outside form fields. */
body :where(h1, h2, h3, h4, h5, h6, p, span, strong, em, small, label, th, td, li, div) {
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}

body :where(a, button, [role="button"], [onclick], summary, .nav-item, .icon-only, .primary-action, .secondary-action, .filter-toggle-new, .row-action, .laporkan-contact, .profil-contact),
body :where(a, button, [role="button"], [onclick], summary, .nav-item, .icon-only, .primary-action, .secondary-action, .filter-toggle-new, .row-action, .laporkan-contact, .profil-contact) * {
    cursor: pointer;
}

body :where(input, textarea, select, option, [contenteditable="true"]) {
    -webkit-user-select: text;
    user-select: text;
    cursor: auto;
}

body :where(input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input[type="email"], input[type="tel"], textarea, [contenteditable="true"]) {
    cursor: text;
}

body :where(input[type="file"], input[type="checkbox"], input[type="radio"], select) {
    cursor: pointer;
}

@media (max-width: 768px) {
    body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
        font-size: 16px !important;
    }
}

/* Light mode readability repair for login form. */
body.light .login-box {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
}

body.light .login-header h2 {
    color: #0f172a;
}

body.light .form-group input {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
    caret-color: #0f172a;
}

body.light .form-group input::placeholder {
    color: rgba(71, 85, 105, 0.72);
}

body.light .form-group input:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

body.light .form-group input:-webkit-autofill,
body.light .form-group input:-webkit-autofill:hover,
body.light .form-group input:-webkit-autofill:focus,
body.light .form-group input:-webkit-autofill:active {
    -webkit-text-fill-color: #0f172a;
    caret-color: #0f172a;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.92) inset;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.92) inset;
    border-color: rgba(15, 23, 42, 0.14);
}

body.light .toggle-password {
    background: rgba(226, 232, 240, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.light .toggle-password:hover,
body.light .toggle-password:focus,
body.light .toggle-password:active {
    background: rgba(219, 234, 254, 0.96);
    border-color: rgba(37, 99, 235, 0.26);
    color: #1d4ed8;
}

body.light .remember-me {
    color: #334155;
}

body.light .remember-me span {
    color: #334155;
}

body.light .error {
    background: rgba(254, 226, 226, 0.86);
    border-color: rgba(220, 38, 38, 0.24);
    color: #991b1b;
}
